Syntax Error on line 15
MOVE: q d8-f6 is not a valid expression, because q is not a recognized piece, coordinate, command, or subroutine.
Edit the Settings File for Time Travel Chess
For the sake of debugging, here is the full GAME Code program that this error occurred in. The lines have been properly indented to help you spot scope errors.
0 moveindex 1 1 MOVE: e2- 2 moveindex 2 3 MOVE: e7-e5 4 moveindex 3 5 MOVE: d2- 6 moveindex 4 7 MOVE: d7-d5 8 moveindex 5 9 MOVE: g1-e2 10 moveindex 6 11 MOVE: f8-c5 12 moveindex 7 13 MOVE: f2- 14 moveindex 8 15 MOVE: q d8-f6 16 moveindex 9 17 MOVE: e1- 18 moveindex 10 19 MOVE: g8-e7 20 moveindex 11 21 MOVE: b1-c3 22 moveindex 12 23 MOVE: c7-c6 24 moveindex 13 25 MOVE: g2-g3 26 moveindex 14 27 MOVE: k e8-g8 28 MOVE: r h8-f8 29 moveindex 15 30 MOVE: f1-g2 31 moveindex 16 32 MOVE: c8-g4 33 moveindex 17 34 MOVE: resign 35 end 36functions
uservar
Array ( [0] => Array ( [main] => Array ( ) ) )mline
Array ( [0] => MoveLine Object ( [movenum] => 0 [move] => [level] => 0 [comment] => [length] => 0 [newturn] => [turn] => 0 ) [1] => MoveLine Object ( [movenum] => 1 [move] => e2- [level] => 0 [comment] => [length] => 6 [newturn] => 1 [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 2 [move] => e7-e5 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 1 ) [3] => MoveLine Object ( [movenum] => 3 [move] => d2- [level] => 0 [comment] => [length] => 6 [newturn] => 1 [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 4 [move] => d7-d5 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 2 ) [5] => MoveLine Object ( [movenum] => 5 [move] => g1-e2 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 6 [move] => f8-c5 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 3 ) [7] => MoveLine Object ( [movenum] => 7 [move] => f2- [level] => 0 [comment] => [length] => 6 [newturn] => 1 [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 8 [move] => q d8-f6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 4 ) [9] => MoveLine Object ( [movenum] => 9 [move] => e1- [level] => 0 [comment] => [length] => 6 [newturn] => 1 [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 10 [move] => g8-e7 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 5 ) [11] => MoveLine Object ( [movenum] => 11 [move] => b1-c3 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 12 [move] => c7-c6 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 6 ) [13] => MoveLine Object ( [movenum] => 13 [move] => g2-g3 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 14 [move] => k e8-g8; r h8-f8 [level] => 0 [comment] => [length] => 21 [newturn] => [turn] => 7 ) [15] => MoveLine Object ( [movenum] => 15 [move] => f1-g2 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 16 [move] => c8-g4 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 8 ) [17] => MoveLine Object ( [movenum] => 17 [move] => resign [level] => 0 [comment] => [length] => 9 [newturn] => 1 [turn] => 9 ) )allmoves
Array ( [0] => moveindex 17;MOVE: resign [1] => moveindex 16;MOVE: c8-g4 [2] => moveindex 15;MOVE: f1-g2 [3] => moveindex 14;MOVE: k e8-g8; MOVE: r h8-f8 [4] => moveindex 13;MOVE: g2-g3 [5] => moveindex 12;MOVE: c7-c6 [6] => moveindex 11;MOVE: b1-c3 [7] => moveindex 10;MOVE: g8-e7 [8] => moveindex 9;MOVE: e1- [9] => moveindex 8;MOVE: q d8-f6 [10] => moveindex 7;MOVE: f2- [11] => moveindex 6;MOVE: f8-c5 [12] => moveindex 5;MOVE: g1-e2 [13] => moveindex 4;MOVE: d7-d5 [14] => moveindex 3;MOVE: d2- [15] => moveindex 2;MOVE: e7-e5 [16] => moveindex 1;MOVE: e2- )movelist
1. e2- 1... e7-e5 2. d2- 2... d7-d5 3. g1-e2 3... f8-c5 4. f2- 4... q d8-f6 5. e1- 5... g8-e7 6. b1-c3 6... c7-c6 7. g2-g3 7... k e8-g8; r h8-f8 8. f1-g2 8... c8-g4 9. resignconstants
Array ( )