Syntax Error on line 10
MOVE: CB-g1 is not a valid expression, because CB-g1 is not a recognized piece, coordinate, command, or subroutine.
Edit the Settings File for Slide 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 0 1 MOVE: e3-e4 2 moveindex 1 3 MOVE: e6-e5 4 moveindex 2 5 MOVE: C e8-g1 6 moveindex 3 7 MOVE: e1-e8 8 moveindex 4 9 MOVE: f2- 10 MOVE: CB-g1 11 moveindex 5 12 MOVE: b6-b5 13 moveindex 6 14 MOVE: Cn-g8 15 MOVE: p-g7 16 MOVE: g6- 17 MOVE: P-g4 18 MOVE: N-g3 19 MOVE: B-g2 20 MOVE: g1- 21 moveindex 7 22 MOVE: d7- 23 MOVE: cb-e8 24 moveindex 8 25 MOVE: Cn g8-a2 26 moveindex 9 27 MOVE: e8-g1 28 moveindex 10 29 MOVE: b2- 30 MOVE: CR-a2 31 moveindex 11 32 MOVE: c-g1 33 MOVE: b-h2 34 moveindex 12 35 MOVE: N g3-f5 36 moveindex 13 37 MOVE: e7-d7 38 moveindex 14 39 MOVE: a2- 40 MOVE: R-b2 41 MOVE: c2- 42 MOVE: N-d2 43 MOVE: B-e2 44 MOVE: K-f2 45 MOVE: g2- 46 MOVE: B-h2 47 MOVE: Cb-i2 48 moveindex 15 49 MOVE: h6-h5 50 moveindex 16 51 MOVE: Cb i2-a4 52 moveindex 17 53 MOVE: b-b3 54 MOVE: C-a4 55 moveindex 18 56 MOVE: N d2-b3 57 moveindex 19 58 MOVE: g7-g6 59 moveindex 20 60 MOVE: N f5-e3 61 moveindex 21 62 MOVE: h5-g4 63 moveindex 22 64 MOVE: N e3-g4 65 moveindex 23 66 MOVE: h7-h3 67 moveindex 24 68 MOVE: K f2-g2 69 moveindex 25 70 MOVE: h3-h4 71 moveindex 26 72 MOVE: N g4-f6 73 moveindex 27 74 MOVE: d7-e6 75 moveindex 28 76 MOVE: N f6-g4 77 moveindex 29 78 MOVE: d6-d5 79 moveindex 30 80 MOVE: N b3-c5 81 moveindex 31 82 MOVE: e6-d6 83 moveindex 32 84 MOVE: N c5-b7 85 moveindex 33 86 MOVE: d6-e6 87 moveindex 34 88 MOVE: B h2-g3 89 moveindex 35 90 MOVE: h4-h5 91 moveindex 36 92 MOVE: d3-d4 93 moveindex 37 94 MOVE: e5-d4 95 moveindex 38 96 MOVE: c3-d4 97 moveindex 39 98 MOVE: resign 99 end 100functions
uservar
Array ( [0] => Array ( [main] => Array ( ) ) )mline
Array ( [0] => MoveLine Object ( [movenum] => 1 [move] => e3-e4 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 1 ) [1] => MoveLine Object ( [movenum] => 2 [move] => e6-e5 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 3 [move] => C e8-g1 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 2 ) [3] => MoveLine Object ( [movenum] => 4 [move] => e1-e8 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 5 [move] => f2-;CB-g1 [level] => 0 [comment] => [length] => 12 [newturn] => 1 [turn] => 3 ) [5] => MoveLine Object ( [movenum] => 6 [move] => b6-b5 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 7 [move] => Cn-g8; p-g7; g6-;P-g4; N-g3;B-g2; g1- [level] => 0 [comment] => [length] => 40 [newturn] => 1 [turn] => 4 ) [7] => MoveLine Object ( [movenum] => 8 [move] => d7-;cb-e8 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 9 [move] => Cn g8-a2 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 5 ) [9] => MoveLine Object ( [movenum] => 10 [move] => e8-g1 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 11 [move] => b2-; CR-a2 [level] => 0 [comment] => // Yours is better. [length] => 33 [newturn] => 1 [turn] => 6 ) [11] => MoveLine Object ( [movenum] => 12 [move] => c-g1;b-h2 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 13 [move] => N g3-f5 [level] => 0 [comment] => // Check [length] => 19 [newturn] => 1 [turn] => 7 ) [13] => MoveLine Object ( [movenum] => 14 [move] => e7-d7 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 15 [move] => a2-; R-b2; c2-; N-d2; B-e2; K-f2; g2-; B-h2;Cb-i2 [level] => 0 [comment] => [length] => 52 [newturn] => 1 [turn] => 8 ) [15] => MoveLine Object ( [movenum] => 16 [move] => h6-h5 [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 17 [move] => Cb i2-a4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 9 ) [17] => MoveLine Object ( [movenum] => 18 [move] => b-b3;C-a4 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 9 ) [18] => MoveLine Object ( [movenum] => 19 [move] => N d2-b3 [level] => 0 [comment] => // Position is more complex than it appears, [length] => 56 [newturn] => 1 [turn] => 10 ) [19] => MoveLine Object ( [movenum] => 20 [move] => g7-g6 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 10 ) [20] => MoveLine Object ( [movenum] => 21 [move] => N f5-e3 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 11 ) [21] => MoveLine Object ( [movenum] => 22 [move] => h5-g4 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 11 ) [22] => MoveLine Object ( [movenum] => 23 [move] => N e3-g4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 12 ) [23] => MoveLine Object ( [movenum] => 24 [move] => h7-h3 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 12 ) [24] => MoveLine Object ( [movenum] => 25 [move] => K f2-g2 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 13 ) [25] => MoveLine Object ( [movenum] => 26 [move] => h3-h4 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 13 ) [26] => MoveLine Object ( [movenum] => 27 [move] => N g4-f6 [level] => 0 [comment] => // Check [length] => 20 [newturn] => 1 [turn] => 14 ) [27] => MoveLine Object ( [movenum] => 28 [move] => d7-e6 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 14 ) [28] => MoveLine Object ( [movenum] => 29 [move] => N f6-g4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 15 ) [29] => MoveLine Object ( [movenum] => 30 [move] => d6-d5 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 15 ) [30] => MoveLine Object ( [movenum] => 31 [move] => N b3-c5 [level] => 0 [comment] => // Check. Doubtly move? [length] => 35 [newturn] => 1 [turn] => 16 ) [31] => MoveLine Object ( [movenum] => 32 [move] => e6-d6 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 16 ) [32] => MoveLine Object ( [movenum] => 33 [move] => N c5-b7 [level] => 0 [comment] => // Check [length] => 20 [newturn] => 1 [turn] => 17 ) [33] => MoveLine Object ( [movenum] => 34 [move] => d6-e6 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 17 ) [34] => MoveLine Object ( [movenum] => 35 [move] => B h2-g3 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 18 ) [35] => MoveLine Object ( [movenum] => 36 [move] => h4-h5 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 18 ) [36] => MoveLine Object ( [movenum] => 37 [move] => d3-d4 [level] => 0 [comment] => [length] => 9 [newturn] => 1 [turn] => 19 ) [37] => MoveLine Object ( [movenum] => 38 [move] => e5-d4 [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 19 ) [38] => MoveLine Object ( [movenum] => 39 [move] => c3-d4 [level] => 0 [comment] => [length] => 9 [newturn] => 1 [turn] => 20 ) [39] => MoveLine Object ( [movenum] => 40 [move] => resign [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 20 ) )allmoves
Array ( [0] => moveindex 39;MOVE: resign [1] => moveindex 38;MOVE: c3-d4 [2] => moveindex 37;MOVE: e5-d4 [3] => moveindex 36;MOVE: d3-d4 [4] => moveindex 35;MOVE: h4-h5 [5] => moveindex 34;MOVE: B h2-g3 [6] => moveindex 33;MOVE: d6-e6 [7] => moveindex 32;MOVE: N c5-b7 [8] => moveindex 31;MOVE: e6-d6 [9] => moveindex 30;MOVE: N b3-c5 [10] => moveindex 29;MOVE: d6-d5 [11] => moveindex 28;MOVE: N f6-g4 [12] => moveindex 27;MOVE: d7-e6 [13] => moveindex 26;MOVE: N g4-f6 [14] => moveindex 25;MOVE: h3-h4 [15] => moveindex 24;MOVE: K f2-g2 [16] => moveindex 23;MOVE: h7-h3 [17] => moveindex 22;MOVE: N e3-g4 [18] => moveindex 21;MOVE: h5-g4 [19] => moveindex 20;MOVE: N f5-e3 [20] => moveindex 19;MOVE: g7-g6 [21] => moveindex 18;MOVE: N d2-b3 [22] => moveindex 17;MOVE: b-b3; MOVE: C-a4 [23] => moveindex 16;MOVE: Cb i2-a4 [24] => moveindex 15;MOVE: h6-h5 [25] => moveindex 14;MOVE: a2-; MOVE: R-b2; MOVE: c2-; MOVE: N-d2; MOVE: B-e2; MOVE: K-f2; MOVE: g2-; MOVE: B-h2; MOVE: Cb-i2 [26] => moveindex 13;MOVE: e7-d7 [27] => moveindex 12;MOVE: N g3-f5 [28] => moveindex 11;MOVE: c-g1; MOVE: b-h2 [29] => moveindex 10;MOVE: b2-; MOVE: CR-a2 [30] => moveindex 9;MOVE: e8-g1 [31] => moveindex 8;MOVE: Cn g8-a2 [32] => moveindex 7;MOVE: d7-; MOVE: cb-e8 [33] => moveindex 6;MOVE: Cn-g8; MOVE: p-g7; MOVE: g6-; MOVE: P-g4; MOVE: N-g3; MOVE: B-g2; MOVE: g1- [34] => moveindex 5;MOVE: b6-b5 [35] => moveindex 4;MOVE: f2-; MOVE: CB-g1 [36] => moveindex 3;MOVE: e1-e8 [37] => moveindex 2;MOVE: C e8-g1 [38] => moveindex 1;MOVE: e6-e5 [39] => moveindex 0;MOVE: e3-e4 )movelist
1. e3-e4 1... e6-e5 2. C e8-g1 2... e1-e8 3. f2-;CB-g1 3... b6-b5 4. Cn-g8; p-g7; g6-;P-g4; N-g3;B-g2; g1- 4... d7-;cb-e8 5. Cn g8-a2 5... e8-g1 6. b2-; CR-a2 // Yours is better. 6... c-g1;b-h2 7. N g3-f5 // Check 7... e7-d7 8. a2-; R-b2; c2-; N-d2; B-e2; K-f2; g2-; B-h2;Cb-i2 8... h6-h5 9. Cb i2-a4 9... b-b3;C-a4 10. N d2-b3 // Position is more complex than it appears, 10... g7-g6 11. N f5-e3 11... h5-g4 12. N e3-g4 12... h7-h3 13. K f2-g2 13... h3-h4 14. N g4-f6 // Check 14... d7-e6 15. N f6-g4 15... d6-d5 16. N b3-c5 // Check. Doubtly move? 16... e6-d6 17. N c5-b7 // Check 17... d6-e6 18. B h2-g3 18... h4-h5 19. d3-d4 19... e5-d4 20. c3-d4 20... resignconstants
Array ( )