2);
tmoveCoord (3, "Up", 2); (! checkCoord (tcoord));
state = 4;
} (state == 4)
{
tmoveCoord (1, "Up");
tmoveCoord (1, "Right");
tmoveCoord (2, "Right", 2);
tmoveCoord (2, "Up", 2); (! checkCoord (tcoord));
state = 3;
} (state == 3)
{
tmoveCoord (1, "Right");
tmoveCoord (1, "Down");
tmoveCoord (3, "Down", 2);
tmoveCoord (3, "Right", 2); (! checkCoord (tcoord));
state = 2;
} (state == 2)
{
tmoveCoord (1, "Down");
tmoveCoord (1, "Left");
tmoveCoord (2, "Down", 2);
tmoveCoord (2, "Left", 2); (! checkCoord (tcoord));
state = 1;
} (test == "no test")
{
remove ();
copy (coord, tcoord);
toTable ();. Inv ();
}
state = stateBackup;
;
} leftRot (string test = "no test")
{
copy (tcoord, coord); stateBackup = state; (state == 1)
{
tmoveCoord (1, "Right");
tmoveCoord (1, "Up");
tmoveCoord (2, "Right", 2);
tmoveCoord (2, "Up", 2); (! checkCoord (tcoord));
state = 2;
} (state == 2)
{
tmoveCoord (1, "Up");
tmoveCoord (1, "Left");
tmoveCoord (3, "Left", 2);
tmoveCoord (3, "Up", 2); (! checkCoord (tcoord));
state = 3;
} (state == 3)
{
tmoveCoord (1, "Left");
tmoveCoord (1, "Down");
tmoveCoord (2, "Down", 2);
tmoveCoord (2, "Left", 2); (! checkCoord (tcoord));
state = 4;
} (state == 4)
{
tmoveCoord (1, "Down");
tmoveCoord (1, "Right");
tmoveCoord (3, "Down", 2);
tmoveCoord (3, "Right", 2); (! checkCoord (tcoord));
state = 1;
} (test == "no test")
{
remove ();
copy (coord, tcoord);