Syntax Error on line 161
MOVE: resign- is not a valid expression, because resign- is not a recognized piece, coordinate, command, or subroutine.
Edit the Settings File for Grand Shatranj
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: P g3-g4 2 moveindex 1 3 MOVE: p g8-g6 4 moveindex 2 5 MOVE: g6-g7 6 MOVE: d3-d4 7 moveindex 3 8 MOVE: p c8-c7 9 moveindex 4 10 MOVE: P f3-f4 11 moveindex 5 12 MOVE: p d8-d7 13 moveindex 6 14 MOVE: P i3-i4 15 moveindex 7 16 MOVE: n i9-h7 17 moveindex 8 18 MOVE: O h2-i3 19 moveindex 9 20 MOVE: p e8-e7 21 moveindex 10 22 MOVE: N i2-g3 23 moveindex 11 24 MOVE: n b9-d8 25 moveindex 12 26 MOVE: P e3-e4 27 moveindex 13 28 MOVE: p f8-f7 29 moveindex 14 30 MOVE: P f4-f5 31 moveindex 15 32 MOVE: p f7-f6 33 moveindex 16 34 MOVE: L a1-e1 35 moveindex 17 36 MOVE: l a10-a7 37 moveindex 18 38 MOVE: O i3-e3 39 moveindex 19 40 MOVE: o h9-f7 41 moveindex 20 42 MOVE: O e3-a7 43 moveindex 21 44 MOVE: o c9-a7 45 moveindex 22 46 MOVE: N b2-c4 47 moveindex 23 48 MOVE: p i8-i7 49 moveindex 24 50 MOVE: P h3-h4 51 moveindex 25 52 MOVE: p e7-e6 53 moveindex 26 54 MOVE: P e4-e5 55 moveindex 27 56 MOVE: m f9-e7 57 moveindex 28 58 MOVE: H g2-h3 59 moveindex 29 60 MOVE: h g9-i8 61 moveindex 30 62 MOVE: P g4-g5 63 moveindex 31 64 MOVE: p e6-f5 65 moveindex 32 66 MOVE: N g3-f5 67 moveindex 33 68 MOVE: m e7-f5 69 moveindex 34 70 MOVE: H h3-f5 71 moveindex 35 72 MOVE: n d8-e6 73 moveindex 36 74 MOVE: P g5-g6 75 moveindex 37 76 MOVE: o f7-c4 77 moveindex 38 78 MOVE: P b3-c4 79 moveindex 39 80 MOVE: n h7-f8 81 moveindex 40 82 MOVE: H f5-e7 83 moveindex 41 84 MOVE: j d9-e8 85 moveindex 42 86 MOVE: P e5-f6 87 moveindex 43 88 MOVE: p g7-f6 89 moveindex 44 90 MOVE: H e7-f6 91 moveindex 45 92 MOVE: j e8-f9 93 moveindex 46 94 MOVE: L e1-e5 95 moveindex 47 96 MOVE: k e9-d10 97 moveindex 48 98 MOVE: H f6-h8 99 moveindex 49 100 MOVE: j f9-g8 101 moveindex 50 102 MOVE: H h8-j10 103 moveindex 51 104 MOVE: h i8-j10 105 moveindex 52 106 MOVE: L j1-f1 107 moveindex 53 108 MOVE: h j10-h8 109 moveindex 54 110 MOVE: P h4-h5 111 moveindex 55 112 MOVE: k d10-e9 113 moveindex 56 114 MOVE: e9-10 115 moveindex 57 116 MOVE: k-d10 117 MOVE: d10-d9 118 moveindex 58 119 MOVE: M f2-e4 120 moveindex 59 121 MOVE: j g8-g7 122 moveindex 60 123 MOVE: L e5-f5 124 moveindex 61 125 MOVE: n e6-g5 126 moveindex 62 127 MOVE: M e4-g5 128 moveindex 63 129 MOVE: j g7-h6 130 moveindex 64 131 MOVE: L f5-d5 132 moveindex 65 133 MOVE: h h8-f6 134 moveindex 66 135 MOVE: J d2-f4 136 moveindex 67 137 MOVE: j h6-f4 138 moveindex 68 139 MOVE: L f1-f4 140 moveindex 69 141 MOVE: h f6-g5 142 moveindex 70 143 MOVE: L d5-g5 144 moveindex 71 145 MOVE: n f8-e6 146 moveindex 72 147 MOVE: L g5-g9 148 moveindex 73 149 MOVE: k d9-c8 150 moveindex 74 151 MOVE: O c2-f5 152 moveindex 75 153 MOVE: k c8-b7 154 moveindex 76 155 MOVE: L f4-f6 156 moveindex 77 157 MOVE: o a7-b6 158 moveindex 78 159 MOVE: O f5-d7 160 moveindex 79 161 MOVE: resign- 162 end 163functions
uservar
Array ( [0] => Array ( [main] => Array ( ) ) )mline
Array ( [0] => MoveLine Object ( [movenum] => 1 [move] => P g3-g4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 1 ) [1] => MoveLine Object ( [movenum] => 2 [move] => p g8-g6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 3 [move] => g6-g7; d3-d4 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 2 ) [3] => MoveLine Object ( [movenum] => 4 [move] => p c8-c7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 5 [move] => P f3-f4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 3 ) [5] => MoveLine Object ( [movenum] => 6 [move] => p d8-d7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 7 [move] => P i3-i4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 4 ) [7] => MoveLine Object ( [movenum] => 8 [move] => n i9-h7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 9 [move] => O h2-i3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 5 ) [9] => MoveLine Object ( [movenum] => 10 [move] => p e8-e7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 11 [move] => N i2-g3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 6 ) [11] => MoveLine Object ( [movenum] => 12 [move] => n b9-d8 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 13 [move] => P e3-e4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 7 ) [13] => MoveLine Object ( [movenum] => 14 [move] => p f8-f7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 15 [move] => P f4-f5 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 8 ) [15] => MoveLine Object ( [movenum] => 16 [move] => p f7-f6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 17 [move] => L a1-e1 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 9 ) [17] => MoveLine Object ( [movenum] => 18 [move] => l a10-a7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 9 ) [18] => MoveLine Object ( [movenum] => 19 [move] => O i3-e3 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 10 ) [19] => MoveLine Object ( [movenum] => 20 [move] => o h9-f7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 10 ) [20] => MoveLine Object ( [movenum] => 21 [move] => O e3-a7 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 11 ) [21] => MoveLine Object ( [movenum] => 22 [move] => o c9-a7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 11 ) [22] => MoveLine Object ( [movenum] => 23 [move] => N b2-c4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 12 ) [23] => MoveLine Object ( [movenum] => 24 [move] => p i8-i7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 12 ) [24] => MoveLine Object ( [movenum] => 25 [move] => P h3-h4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 13 ) [25] => MoveLine Object ( [movenum] => 26 [move] => p e7-e6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 13 ) [26] => MoveLine Object ( [movenum] => 27 [move] => P e4-e5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 14 ) [27] => MoveLine Object ( [movenum] => 28 [move] => m f9-e7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 14 ) [28] => MoveLine Object ( [movenum] => 29 [move] => H g2-h3 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 15 ) [29] => MoveLine Object ( [movenum] => 30 [move] => h g9-i8 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 15 ) [30] => MoveLine Object ( [movenum] => 31 [move] => P g4-g5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 16 ) [31] => MoveLine Object ( [movenum] => 32 [move] => p e6-f5 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 16 ) [32] => MoveLine Object ( [movenum] => 33 [move] => N g3-f5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 17 ) [33] => MoveLine Object ( [movenum] => 34 [move] => m e7-f5 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 17 ) [34] => MoveLine Object ( [movenum] => 35 [move] => H h3-f5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 18 ) [35] => MoveLine Object ( [movenum] => 36 [move] => n d8-e6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 18 ) [36] => MoveLine Object ( [movenum] => 37 [move] => P g5-g6 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 19 ) [37] => MoveLine Object ( [movenum] => 38 [move] => o f7-c4 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 19 ) [38] => MoveLine Object ( [movenum] => 39 [move] => P b3-c4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 20 ) [39] => MoveLine Object ( [movenum] => 40 [move] => n h7-f8 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 20 ) [40] => MoveLine Object ( [movenum] => 41 [move] => H f5-e7 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 21 ) [41] => MoveLine Object ( [movenum] => 42 [move] => j d9-e8 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 21 ) [42] => MoveLine Object ( [movenum] => 43 [move] => P e5-f6 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 22 ) [43] => MoveLine Object ( [movenum] => 44 [move] => p g7-f6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 22 ) [44] => MoveLine Object ( [movenum] => 45 [move] => H e7-f6 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 23 ) [45] => MoveLine Object ( [movenum] => 46 [move] => j e8-f9 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 23 ) [46] => MoveLine Object ( [movenum] => 47 [move] => L e1-e5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 24 ) [47] => MoveLine Object ( [movenum] => 48 [move] => k e9-d10 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 24 ) [48] => MoveLine Object ( [movenum] => 49 [move] => H f6-h8 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 25 ) [49] => MoveLine Object ( [movenum] => 50 [move] => j f9-g8 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 25 ) [50] => MoveLine Object ( [movenum] => 51 [move] => H h8-j10 [level] => 0 [comment] => [length] => 12 [newturn] => 1 [turn] => 26 ) [51] => MoveLine Object ( [movenum] => 52 [move] => h i8-j10 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 26 ) [52] => MoveLine Object ( [movenum] => 53 [move] => L j1-f1 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 27 ) [53] => MoveLine Object ( [movenum] => 54 [move] => h j10-h8 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 27 ) [54] => MoveLine Object ( [movenum] => 55 [move] => P h4-h5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 28 ) [55] => MoveLine Object ( [movenum] => 56 [move] => k d10-e9 [level] => 0 [comment] => [length] => 14 [newturn] => [turn] => 28 ) [56] => MoveLine Object ( [movenum] => 57 [move] => e9-10 [level] => 0 [comment] => [length] => 9 [newturn] => 1 [turn] => 29 ) [57] => MoveLine Object ( [movenum] => 58 [move] => k-d10; d10-d9 [level] => 0 [comment] => [length] => 19 [newturn] => [turn] => 29 ) [58] => MoveLine Object ( [movenum] => 59 [move] => M f2-e4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 30 ) [59] => MoveLine Object ( [movenum] => 60 [move] => j g8-g7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 30 ) [60] => MoveLine Object ( [movenum] => 61 [move] => L e5-f5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 31 ) [61] => MoveLine Object ( [movenum] => 62 [move] => n e6-g5 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 31 ) [62] => MoveLine Object ( [movenum] => 63 [move] => M e4-g5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 32 ) [63] => MoveLine Object ( [movenum] => 64 [move] => j g7-h6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 32 ) [64] => MoveLine Object ( [movenum] => 65 [move] => L f5-d5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 33 ) [65] => MoveLine Object ( [movenum] => 66 [move] => h h8-f6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 33 ) [66] => MoveLine Object ( [movenum] => 67 [move] => J d2-f4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 34 ) [67] => MoveLine Object ( [movenum] => 68 [move] => j h6-f4 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 34 ) [68] => MoveLine Object ( [movenum] => 69 [move] => L f1-f4 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 35 ) [69] => MoveLine Object ( [movenum] => 70 [move] => h f6-g5 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 35 ) [70] => MoveLine Object ( [movenum] => 71 [move] => L d5-g5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 36 ) [71] => MoveLine Object ( [movenum] => 72 [move] => n f8-e6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 36 ) [72] => MoveLine Object ( [movenum] => 73 [move] => L g5-g9 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 37 ) [73] => MoveLine Object ( [movenum] => 74 [move] => k d9-c8 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 37 ) [74] => MoveLine Object ( [movenum] => 75 [move] => O c2-f5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 38 ) [75] => MoveLine Object ( [movenum] => 76 [move] => k c8-b7 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 38 ) [76] => MoveLine Object ( [movenum] => 77 [move] => L f4-f6 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 39 ) [77] => MoveLine Object ( [movenum] => 78 [move] => o a7-b6 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 39 ) [78] => MoveLine Object ( [movenum] => 79 [move] => O f5-d7 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 40 ) [79] => MoveLine Object ( [movenum] => 80 [move] => resign- [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 40 ) )allmoves
Array ( [0] => moveindex 79;MOVE: resign- [1] => moveindex 78;MOVE: O f5-d7 [2] => moveindex 77;MOVE: o a7-b6 [3] => moveindex 76;MOVE: L f4-f6 [4] => moveindex 75;MOVE: k c8-b7 [5] => moveindex 74;MOVE: O c2-f5 [6] => moveindex 73;MOVE: k d9-c8 [7] => moveindex 72;MOVE: L g5-g9 [8] => moveindex 71;MOVE: n f8-e6 [9] => moveindex 70;MOVE: L d5-g5 [10] => moveindex 69;MOVE: h f6-g5 [11] => moveindex 68;MOVE: L f1-f4 [12] => moveindex 67;MOVE: j h6-f4 [13] => moveindex 66;MOVE: J d2-f4 [14] => moveindex 65;MOVE: h h8-f6 [15] => moveindex 64;MOVE: L f5-d5 [16] => moveindex 63;MOVE: j g7-h6 [17] => moveindex 62;MOVE: M e4-g5 [18] => moveindex 61;MOVE: n e6-g5 [19] => moveindex 60;MOVE: L e5-f5 [20] => moveindex 59;MOVE: j g8-g7 [21] => moveindex 58;MOVE: M f2-e4 [22] => moveindex 57;MOVE: k-d10; MOVE: d10-d9 [23] => moveindex 56;MOVE: e9-10 [24] => moveindex 55;MOVE: k d10-e9 [25] => moveindex 54;MOVE: P h4-h5 [26] => moveindex 53;MOVE: h j10-h8 [27] => moveindex 52;MOVE: L j1-f1 [28] => moveindex 51;MOVE: h i8-j10 [29] => moveindex 50;MOVE: H h8-j10 [30] => moveindex 49;MOVE: j f9-g8 [31] => moveindex 48;MOVE: H f6-h8 [32] => moveindex 47;MOVE: k e9-d10 [33] => moveindex 46;MOVE: L e1-e5 [34] => moveindex 45;MOVE: j e8-f9 [35] => moveindex 44;MOVE: H e7-f6 [36] => moveindex 43;MOVE: p g7-f6 [37] => moveindex 42;MOVE: P e5-f6 [38] => moveindex 41;MOVE: j d9-e8 [39] => moveindex 40;MOVE: H f5-e7 [40] => moveindex 39;MOVE: n h7-f8 [41] => moveindex 38;MOVE: P b3-c4 [42] => moveindex 37;MOVE: o f7-c4 [43] => moveindex 36;MOVE: P g5-g6 [44] => moveindex 35;MOVE: n d8-e6 [45] => moveindex 34;MOVE: H h3-f5 [46] => moveindex 33;MOVE: m e7-f5 [47] => moveindex 32;MOVE: N g3-f5 [48] => moveindex 31;MOVE: p e6-f5 [49] => moveindex 30;MOVE: P g4-g5 [50] => moveindex 29;MOVE: h g9-i8 [51] => moveindex 28;MOVE: H g2-h3 [52] => moveindex 27;MOVE: m f9-e7 [53] => moveindex 26;MOVE: P e4-e5 [54] => moveindex 25;MOVE: p e7-e6 [55] => moveindex 24;MOVE: P h3-h4 [56] => moveindex 23;MOVE: p i8-i7 [57] => moveindex 22;MOVE: N b2-c4 [58] => moveindex 21;MOVE: o c9-a7 [59] => moveindex 20;MOVE: O e3-a7 [60] => moveindex 19;MOVE: o h9-f7 [61] => moveindex 18;MOVE: O i3-e3 [62] => moveindex 17;MOVE: l a10-a7 [63] => moveindex 16;MOVE: L a1-e1 [64] => moveindex 15;MOVE: p f7-f6 [65] => moveindex 14;MOVE: P f4-f5 [66] => moveindex 13;MOVE: p f8-f7 [67] => moveindex 12;MOVE: P e3-e4 [68] => moveindex 11;MOVE: n b9-d8 [69] => moveindex 10;MOVE: N i2-g3 [70] => moveindex 9;MOVE: p e8-e7 [71] => moveindex 8;MOVE: O h2-i3 [72] => moveindex 7;MOVE: n i9-h7 [73] => moveindex 6;MOVE: P i3-i4 [74] => moveindex 5;MOVE: p d8-d7 [75] => moveindex 4;MOVE: P f3-f4 [76] => moveindex 3;MOVE: p c8-c7 [77] => moveindex 2;MOVE: g6-g7; MOVE: d3-d4 [78] => moveindex 1;MOVE: p g8-g6 [79] => moveindex 0;MOVE: P g3-g4 )movelist
1. P g3-g4 1... p g8-g6 2. g6-g7; d3-d4 2... p c8-c7 3. P f3-f4 3... p d8-d7 4. P i3-i4 4... n i9-h7 5. O h2-i3 5... p e8-e7 6. N i2-g3 6... n b9-d8 7. P e3-e4 7... p f8-f7 8. P f4-f5 8... p f7-f6 9. L a1-e1 9... l a10-a7 10. O i3-e3 10... o h9-f7 11. O e3-a7 11... o c9-a7 12. N b2-c4 12... p i8-i7 13. P h3-h4 13... p e7-e6 14. P e4-e5 14... m f9-e7 15. H g2-h3 15... h g9-i8 16. P g4-g5 16... p e6-f5 17. N g3-f5 17... m e7-f5 18. H h3-f5 18... n d8-e6 19. P g5-g6 19... o f7-c4 20. P b3-c4 20... n h7-f8 21. H f5-e7 21... j d9-e8 22. P e5-f6 22... p g7-f6 23. H e7-f6 23... j e8-f9 24. L e1-e5 24... k e9-d10 25. H f6-h8 25... j f9-g8 26. H h8-j10 26... h i8-j10 27. L j1-f1 27... h j10-h8 28. P h4-h5 28... k d10-e9 29. e9-10 29... k-d10; d10-d9 30. M f2-e4 30... j g8-g7 31. L e5-f5 31... n e6-g5 32. M e4-g5 32... j g7-h6 33. L f5-d5 33... h h8-f6 34. J d2-f4 34... j h6-f4 35. L f1-f4 35... h f6-g5 36. L d5-g5 36... n f8-e6 37. L g5-g9 37... k d9-c8 38. O c2-f5 38... k c8-b7 39. L f4-f6 39... o a7-b6 40. O f5-d7 40... resign-constants
Array ( )