The Game of Toads and Frogs

A number of educated amphibians are placed on a line. The toads are arranged in the first squares and the frogs in the last squares, each animal facing the center with a single vacancy in between the two sets. From this initial configuration our problem is to transfer all toads to where the frogs are and vice versa by means of two kind of movements performed sequentially by one pet at a time. Any pet can move to the empty space if it happens to be next to it; if this is not the case, it can jump in the direction it is facing over an adjacent pet regardless of its type, provided that the empty space is the square it lands on. At all times the process is performed within the limits of the squares.

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.