An implementation of the Playtomo Stonedge game, with its solver

This is an implementation of the Playtomo Stonedge Game, and its solver. See http://www.playtomo.com/ (not much here when I went); Download the playtomo games on BlackBerry.

Playtomo's implementation is nicer (graphical), but here, we provide a solver that will find all the solutions to a given level. Even nicer!

                  +---+
block             |BBB|
                  +---+
empty cell        |   |
                  +---+
solid cell        |SSS|
                  +---+
red button cell   |[R]|
                  +---+
blue button cell  |[B]|
                  +---+
ice cell          |,,,|
                  +---+
target cell       |TTT|
                  +---+
closed door       | / |
                  +---+
open door         |---|
                  +---+

To move the block, use:

      8           i
    4   6   or  j   l
      2           k
  

Example:

CL-USER> (stonedge *level-39*)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+BBB+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|BBB|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+BBB+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|BBB|---|[R]| / |CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]|BBBBBBB|---|CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]|---|[R]|BBB|CCC|[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   | / |SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]|---|[R]|---|BBBBBBB|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 4
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]|---|[R]|BBB|   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 4
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]|BBBBBBB| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 4
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|BBB| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 4
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |BBBBBBB|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 2
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |BBBBBBB|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|BBB|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 2
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+BBB+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 2
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 2
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+BBB+---+---+---+---+---+---+---+---+---+
|   |   |   |   |BBB|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|BBB|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+BBB+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|BBB|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 2
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |BBB|CCC|SSS|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|BBBBBBB|CCC|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|BBB|SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |CCC|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|   |BBBBBBB|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |BBBBBBB|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|   |SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |BBBBBBB|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|   |SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 6
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|BBB|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|   |SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 8
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |---|BBB|   |   |
+---+---+---+---+---+---+---+---+---+---+---+BBB+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|BBB|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|   |SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 4
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|[B]| / |[R]| / |   |[R]|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |,,,|,,,|SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |BBB|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+BBB+---+---+---+
|   |   |   |   |SSS|   |   |   |   |   |BBB|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |,,,|SSS|   |   |   |SSS|TTT|SSS|   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |SSS|SSS|   |   |   |   |SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |SSS|   |SSS|   |SSS|SSS|   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Your move: 2

You win!

; No value
CL-USER> (solve-problem *level-39*)

(NUMBER OF STATES = 990) 
((:WIN 10 5 10 5 :CLOSED :CLOSED :CLOSED :CLOSED :CLOSED :CLOSED :OPEN)
 (:FRONT :FRONT :FRONT :FRONT :RIGHT :RIGHT :RIGHT :LEFT :LEFT :LEFT :LEFT
  :BACK :RIGHT :BACK :BACK :BACK :RIGHT :BACK :RIGHT :RIGHT :RIGHT :FRONT
  :FRONT :RIGHT :FRONT :LEFT :BACK)) 
((:WIN 10 5 10 5 :OPEN :CLOSED :CLOSED :CLOSED :CLOSED :CLOSED :OPEN)
 (:FRONT :FRONT :FRONT :FRONT :RIGHT :RIGHT :RIGHT :LEFT :LEFT :LEFT :LEFT
  :RIGHT :LEFT :BACK :RIGHT :BACK :BACK :BACK :RIGHT :BACK :RIGHT :RIGHT :RIGHT
  :FRONT :FRONT :RIGHT :FRONT :LEFT :BACK)) 
((:WIN 10 5 10 5 :CLOSED :CLOSED :OPEN :CLOSED :CLOSED :CLOSED :OPEN)
 (:FRONT :FRONT :FRONT :FRONT :RIGHT :RIGHT :RIGHT :LEFT :LEFT :LEFT :LEFT
  :RIGHT :RIGHT :LEFT :LEFT :BACK :RIGHT :BACK :BACK :BACK :RIGHT :BACK :RIGHT
  :RIGHT :RIGHT :FRONT :FRONT :RIGHT :FRONT :LEFT :BACK)) 
((:WIN 10 5 10 5 :OPEN :CLOSED :OPEN :CLOSED :CLOSED :CLOSED :OPEN)
 (:FRONT :FRONT :FRONT :FRONT :RIGHT :RIGHT :RIGHT :LEFT :LEFT :LEFT :LEFT
  :RIGHT :RIGHT :LEFT :LEFT :RIGHT :LEFT :BACK :RIGHT :BACK :BACK :BACK :RIGHT
  :BACK :RIGHT :RIGHT :RIGHT :FRONT :FRONT :RIGHT :FRONT :LEFT :BACK)) 
Real time: 0.288899 sec.
Run time: 0.288956 sec.
Space: 6520144 Bytes
GC: 1, GC time: 0.009999 sec.
NIL
CL-USER> 
  

| Mirror on informatimago.com | Mirror on free.fr |
Valid HTML 4.01!