"justify"> y = coord [i, 1]; (MainWindow.table [x + 1, y] == true)
{(int j = 0; j <4; j + +)
{
x1 = coord [j, 0];
y1 = coord [j, 1]; (x + 1 == x1 && y == y1)
{
f = true;;
}
} (! f) return;
f = false;
}
} ();
coord [0, 0] + +;
coord [1, 0] + +;
coord [2, 0] + +;
coord [3, 0] + +;
toTable ();. Inv ();
} down ()
{(coord [0, 1] == 18 | | coord [1, 1] == 18 | | coord [2, 1] == 18 | | coord [3, 1] = = 18); x = 0; y = 0; x1 = 0; y1 = 0; f = false; (int i = 0; i <4; i + +)
{
x = coord [i, 0];
y = coord [i, 1]; (MainWindow.table [x, y + 1] == true)
{(int j = 0; j <4; j + +)
{
x1 = coord [j, 0];
y1 = coord [j, 1]; (x == x1 && y + 1 == y1)
{
f = true;;
}
} (! f);
f = false;
}
} ();
coord [0, 1] + +;
coord [1, 1] + +;
coord [2, 1] + +;
coord [3, 1] + +;
toTable ();. Inv ();;
} up ()
{(coord [0, 1] == 0 | | coord [1, 1] == 0 | | coord [2, 1] == 0 | | coord [3, 1] = = 0); x = 0; y = 0; x1 = 0; y1 = 0; f = false; (int i = 0; i <4; i + +)
{
x = coord [i, 0];
y = coord [i, 1]; (MainWindow.table [x, y - 1] == true)
{(int j = 0; j <4; j + +)
{
x1 = coord [j, 0];
y1 = coord [j, 1]; (x == x1 && y - 1 == y1)
{
f = true;;
}
} (! f);
f = false;
}
} ();
coord [0, 1] -;
coord [1, 1] -;
coord [2, 1] -;
coord [3, 1] -;
toTable ();. Inv ();;
} rightRot (string test = "no test")
{
copy (tcoord, coord); stateBackup = state; (state == 1)
{
tmoveCoord (1, "Left");
tmoveCoord (1, "Up");
tmoveCoord (3, "Left",...