diff --git a/index.html b/index.html index 3ea5a0b5..d3883d45 100644 --- a/index.html +++ b/index.html @@ -107,6 +107,8 @@

Tyler's Game Hub



Ice Age Baby Adventure

+ Jumping frogs puzzle +

Konnekt

Minecraft 0.30 diff --git a/jumpingfrogspuzzle/frogpuzzle.js b/jumpingfrogspuzzle/frogpuzzle.js new file mode 100644 index 00000000..4fee026c --- /dev/null +++ b/jumpingfrogspuzzle/frogpuzzle.js @@ -0,0 +1,5 @@ +(function(){function l(a,b){var c={};c.type=a;c.cell=b;return c}function m(a){a=11a||a>this.list.length?!1:!this.list.some(function(b){return b.cell==a})},empty:function(){for(var a=0;a<=this.list.length;){if(isempty(a))return a;a++}},findhop:function(a){var b=0;"A"==a.type?b=1:"B"==a.type&&(b=-1);return this.isempty(a.cell+b)?a.cell+b:this.isempty(a.cell+2*b)?a.cell+2*b:-1},movesleft:function(){var a=this;return this.list.some(function(b){return-1!=a.findhop(b)})}};f.reset(c);var r=d3.select("#grid"),d=m(7),e=n(7);d3.select("#grid").append("rect"); +d3.select("#reset").on("click",function(){f.reset(c);g=0;h()});q(7);h();d3.select("#counterdropdown").on("change",function(){h()});d3.select("#up").on("click",function(){p(1)});d3.select("#down").on("click",function(){p(-1)})})(); diff --git a/jumpingfrogspuzzle/index.html b/jumpingfrogspuzzle/index.html new file mode 100644 index 00000000..aa324b3a --- /dev/null +++ b/jumpingfrogspuzzle/index.html @@ -0,0 +1,137 @@ + + + + + + + + Jumping Frogs Puzzle + + + + +
+
+

Jumping frogs puzzle

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

 

+

Moves:

+ +

+ + 3 + +

+

+ Counters: + +

+

Rules:

+
    +
  • The left set of counters can only move right, the right set of counters + can only move left.
  • +
  • Counters can move forward one space, or move two spaces by jumping over + another counter.
  • +
  • The puzzle is solved when the two sets of counters have switched positions.
  • +
+
+
+ +

Further information about this puzzle

+

+ Created by Shaun Carter © 2016.
+ The Prime Factorisation of Me +

+
+
+ + + \ No newline at end of file diff --git a/style.css b/style.css index 76db68d1..837c1712 100644 --- a/style.css +++ b/style.css @@ -1,4 +1,3 @@ - @import url('https://rsms.me/inter/inter.css'); html { background-color: #202124; color: #ffffff; @@ -30,4 +29,4 @@ html { color: #c58af9; background-color: transparent; text-decoration: underline; - } + } \ No newline at end of file