Syntax Error on line 16
MOVE: check is not a valid expression, because check is not a recognized piece, coordinate, command, or subroutine.
Edit the Settings File for Pocket Mutation 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: P d2-d4 2 moveindex 2 3 MOVE: r a8- 4 MOVE: i-i8 5 moveindex 3 6 MOVE: R h1- 7 MOVE: I-i1 8 moveindex 4 9 MOVE: p e7-e5 10 moveindex 5 11 MOVE: P e2-e3 12 moveindex 6 13 MOVE: p g7-g6 14 moveindex 7 15 MOVE: I i1-c4 16 MOVE: check 17 moveindex 8 18 MOVE: b f8-d6 19 moveindex 9 20 MOVE: P a2-i1 21 moveindex 10 22 MOVE: i i8-f5 23 moveindex 11 24 MOVE: P g2-g3 25 moveindex 12 26 MOVE: p b7-b5 27 moveindex 13 28 MOVE: I c4-a8 29 moveindex 16 30 MOVE: b c8-b7 31 moveindex 17 32 MOVE: I a8-d2 33 moveindex 18 34 MOVE: b b7-h1 35 moveindex 19 36 MOVE: P i1-c5 37 moveindex 20 38 MOVE: b d6-e7 39 moveindex 21 40 MOVE: R a1-a7 41 moveindex 22 42 MOVE: p e5-d4 43 moveindex 23 44 MOVE: P e3-d4 45 moveindex 24 46 MOVE: i f5-d1 47 moveindex 25 48 MOVE: K e1-d1 49 moveindex 26 50 MOVE: n g8- 51 MOVE: b-i8 52 moveindex 27 53 MOVE: P h2-i1 54 moveindex 28 55 MOVE: b i8-c6 56 moveindex 29 57 MOVE: P f2-f3 58 moveindex 30 59 MOVE: b h1- 60 MOVE: i-i8 61 moveindex 31 62 MOVE: P g3-g4 63 moveindex 32 64 MOVE: i i8-g7 65 moveindex 33 66 MOVE: K d1-e1 67 moveindex 34 68 MOVE: b e7-g5 69 moveindex 35 70 MOVE: I d2-b3 71 moveindex 36 72 MOVE: b g5-c1 73 moveindex 37 74 MOVE: I b3-c1 75 moveindex 38 76 MOVE: r h8- 77 MOVE: d-i8 78 moveindex 39 79 MOVE: P i1-b7 80 moveindex 40 81 MOVE: q d8-h4 82 moveindex 41 83 MOVE: K e1-d2 84 moveindex 42 85 MOVE: d i8-e3 86 moveindex 43 87 MOVE: K d2-d1 88 moveindex 44 89 MOVE: d e3-d3 90 moveindex 45 91 MOVE: K d1-d1 92 end 93functions
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] => P d2-d4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 2 [move] => r a8-; i-i8 [level] => 0 [comment] => [length] => 16 [newturn] => [turn] => 1 ) [3] => MoveLine Object ( [movenum] => 3 [move] => R h1-;I-i1 [level] => 0 [comment] => [length] => 13 [newturn] => 1 [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 4 [move] => p e7-e5 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 2 ) [5] => MoveLine Object ( [movenum] => 5 [move] => P e2-e3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 6 [move] => p g7-g6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 3 ) [7] => MoveLine Object ( [movenum] => 7 [move] => I i1-c4;check [level] => 0 [comment] => [length] => 16 [newturn] => 1 [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 8 [move] => b f8-d6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 4 ) [9] => MoveLine Object ( [movenum] => 9 [move] => P a2-i1 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 10 [move] => i i8-f5 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 5 ) [11] => MoveLine Object ( [movenum] => 11 [move] => P g2-g3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 12 [move] => p b7-b5 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 6 ) [13] => MoveLine Object ( [movenum] => 13 [move] => I c4-a8 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 14 [move] => b c8-b7 [level] => 1 [comment] => [length] => 14 [newturn] => [turn] => 7 ) [15] => MoveLine Object ( [movenum] => 15 [move] => I a8-c4 [level] => 1 [comment] => [length] => 12 [newturn] => 1 [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 16 [move] => b c8-b7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 7 ) [17] => MoveLine Object ( [movenum] => 17 [move] => I a8-d2 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 8 ) [18] => MoveLine Object ( [movenum] => 18 [move] => b b7-h1 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 8 ) [19] => MoveLine Object ( [movenum] => 19 [move] => P i1-c5 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 9 ) [20] => MoveLine Object ( [movenum] => 20 [move] => b d6-e7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 9 ) [21] => MoveLine Object ( [movenum] => 21 [move] => R a1-a7 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 10 ) [22] => MoveLine Object ( [movenum] => 22 [move] => p e5-d4 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 10 ) [23] => MoveLine Object ( [movenum] => 23 [move] => P e3-d4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 11 ) [24] => MoveLine Object ( [movenum] => 24 [move] => i f5-d1 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 11 ) [25] => MoveLine Object ( [movenum] => 25 [move] => K e1-d1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 12 ) [26] => MoveLine Object ( [movenum] => 26 [move] => n g8-; b-i8 [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 12 ) [27] => MoveLine Object ( [movenum] => 27 [move] => P h2-i1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 13 ) [28] => MoveLine Object ( [movenum] => 28 [move] => b i8-c6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 13 ) [29] => MoveLine Object ( [movenum] => 29 [move] => P f2-f3 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 14 ) [30] => MoveLine Object ( [movenum] => 30 [move] => b h1-; i-i8 [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 14 ) [31] => MoveLine Object ( [movenum] => 31 [move] => P g3-g4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 15 ) [32] => MoveLine Object ( [movenum] => 32 [move] => i i8-g7 [level] => 0 [comment] => // Check [length] => 22 [newturn] => [turn] => 15 ) [33] => MoveLine Object ( [movenum] => 33 [move] => K d1-e1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 16 ) [34] => MoveLine Object ( [movenum] => 34 [move] => b e7-g5 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 16 ) [35] => MoveLine Object ( [movenum] => 35 [move] => I d2-b3 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 17 ) [36] => MoveLine Object ( [movenum] => 36 [move] => b g5-c1 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 17 ) [37] => MoveLine Object ( [movenum] => 37 [move] => I b3-c1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 18 ) [38] => MoveLine Object ( [movenum] => 38 [move] => r h8-; d-i8 [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 18 ) [39] => MoveLine Object ( [movenum] => 39 [move] => P i1-b7 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 19 ) [40] => MoveLine Object ( [movenum] => 40 [move] => q d8-h4 [level] => 0 [comment] => // Check [length] => 22 [newturn] => [turn] => 19 ) [41] => MoveLine Object ( [movenum] => 41 [move] => K e1-d2 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 20 ) [42] => MoveLine Object ( [movenum] => 42 [move] => d i8-e3 [level] => 0 [comment] => // Check [length] => 22 [newturn] => [turn] => 20 ) [43] => MoveLine Object ( [movenum] => 43 [move] => K d2-d1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 21 ) [44] => MoveLine Object ( [movenum] => 44 [move] => d e3-d3 [level] => 0 [comment] => // Checkmate [length] => 26 [newturn] => [turn] => 21 ) [45] => MoveLine Object ( [movenum] => 45 [move] => K d1-d1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 22 ) )allmoves
Array ( [0] => moveindex 45;MOVE: K d1-d1 [1] => moveindex 44;MOVE: d e3-d3 [2] => moveindex 43;MOVE: K d2-d1 [3] => moveindex 42;MOVE: d i8-e3 [4] => moveindex 41;MOVE: K e1-d2 [5] => moveindex 40;MOVE: q d8-h4 [6] => moveindex 39;MOVE: P i1-b7 [7] => moveindex 38;MOVE: r h8-; MOVE: d-i8 [8] => moveindex 37;MOVE: I b3-c1 [9] => moveindex 36;MOVE: b g5-c1 [10] => moveindex 35;MOVE: I d2-b3 [11] => moveindex 34;MOVE: b e7-g5 [12] => moveindex 33;MOVE: K d1-e1 [13] => moveindex 32;MOVE: i i8-g7 [14] => moveindex 31;MOVE: P g3-g4 [15] => moveindex 30;MOVE: b h1-; MOVE: i-i8 [16] => moveindex 29;MOVE: P f2-f3 [17] => moveindex 28;MOVE: b i8-c6 [18] => moveindex 27;MOVE: P h2-i1 [19] => moveindex 26;MOVE: n g8-; MOVE: b-i8 [20] => moveindex 25;MOVE: K e1-d1 [21] => moveindex 24;MOVE: i f5-d1 [22] => moveindex 23;MOVE: P e3-d4 [23] => moveindex 22;MOVE: p e5-d4 [24] => moveindex 21;MOVE: R a1-a7 [25] => moveindex 20;MOVE: b d6-e7 [26] => moveindex 19;MOVE: P i1-c5 [27] => moveindex 18;MOVE: b b7-h1 [28] => moveindex 17;MOVE: I a8-d2 [29] => moveindex 16;MOVE: b c8-b7 [30] => moveindex 13;MOVE: I c4-a8 [31] => moveindex 12;MOVE: p b7-b5 [32] => moveindex 11;MOVE: P g2-g3 [33] => moveindex 10;MOVE: i i8-f5 [34] => moveindex 9;MOVE: P a2-i1 [35] => moveindex 8;MOVE: b f8-d6 [36] => moveindex 7;MOVE: I i1-c4; MOVE: check [37] => moveindex 6;MOVE: p g7-g6 [38] => moveindex 5;MOVE: P e2-e3 [39] => moveindex 4;MOVE: p e7-e5 [40] => moveindex 3;MOVE: R h1-; MOVE: I-i1 [41] => moveindex 2;MOVE: r a8-; MOVE: i-i8 [42] => moveindex 1;MOVE: P d2-d4 )movelist
1. P d2-d4 1... r a8-; i-i8 2. R h1-;I-i1 2... p e7-e5 3. P e2-e3 3... p g7-g6 4. I i1-c4;check 4... b f8-d6 5. P a2-i1 5... i i8-f5 6. P g2-g3 6... p b7-b5 7. I c4-a8 | 7... b c8-b7 | 8. I a8-c4 7... b c8-b7 8. I a8-d2 8... b b7-h1 9. P i1-c5 9... b d6-e7 10. R a1-a7 10... p e5-d4 11. P e3-d4 11... i f5-d1 12. K e1-d1 12... n g8-; b-i8 13. P h2-i1 13... b i8-c6 14. P f2-f3 14... b h1-; i-i8 15. P g3-g4 15... i i8-g7 // Check 16. K d1-e1 16... b e7-g5 17. I d2-b3 17... b g5-c1 18. I b3-c1 18... r h8-; d-i8 19. P i1-b7 19... q d8-h4 // Check 20. K e1-d2 20... d i8-e3 // Check 21. K d2-d1 21... d e3-d3 // Checkmate 22. K d1-d1constants
Array ( )