<div class="document" id="playtomo-stonedge"
     title="An implementation of the Playtomo Stonedge game, with its solver"
     description="An implementation of the Playtomo Stonedge game, with its solver."
     author="Pascal J. Bourguignon"
     keywords="Common Lisp, Lisp, game, playtomo, stonedge, solver"
     language="en">

  <H1>An implementation of the Playtomo Stonedge game, with its solver</H1>

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


    <UL>
      <LI><A HREF="playtomo-stonedge.lisp">playtomo-stonedge.lisp</A></LI>
    </UL>
  </p>

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

  <pre class="text">
                  +---+
block             |BBB|
                  +---+
empty cell        |   |
                  +---+
solid cell        |SSS|
                  +---+
red button cell   |[R]|
                  +---+
blue button cell  |[B]|
                  +---+
ice cell          |,,,|
                  +---+
target cell       |TTT|
                  +---+
closed door       | / |
                  +---+
open door         |---|
                  +---+
</pre>


  <p>To move the block, use:</p>
  <pre class="text">
      8           i
    4   6   or  j   l
      2           k
  </pre>


  <p>Example:</p>
  <pre class="dribble">
CL-USER&gt; (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&gt; (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&gt;
  </pre>
</div>
ViewGit