Reply
Mon 14 Mar, 2005 09:58 am
Nine coins are place on a 5X5 board such that one coin is in the center
of the board and the others are on adjacent squares. A move consists of one coin jumping over another coin in an adjacent square to land in an
unoccupied square on the other side of the coin being jumped over. Moves can be vertical, horizontal, or diagonal. The object is to end up with one coin in the center in eight moves?
Code:. . . . . . . . . . . . . . . . . . . . . . . . .
. * * * . . * . * . . * . * . . * . * . . * . * .
. * * * . . . * * . . . . * . . . . * . . . . * .
. * * * . * * * * . * * . * . . . * * . . * . . .
. . . . . . . . . . . . * . . . . * . . . . * . .
. . . . . . . * . . . . . . . . . . . .
. * . * . . . . * . . . . . . . . . . .
* . . * . . . . * . . . . * * . . * . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .