Syntax Error on line 65

MOVE: check is not a valid expression, because check is not a recognized piece, coordinate, command, or subroutine.

Edit the Settings File for Jumping 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 e2-e4
   2 moveindex 2
   3 MOVE: p g7-g6
   4 moveindex 3
   5 MOVE: B f1-c4
   6 moveindex 4
   7 MOVE: p d7-d6
   8 moveindex 5
   9 MOVE: P d2-d4
  10 moveindex 6
  11 MOVE: n b8-c6
  12 moveindex 7
  13 MOVE: N g1-f3
  14 moveindex 8
  15 MOVE: b c8-e6
  16 moveindex 9
  17 MOVE: N b1-c3
  18 moveindex 10
  19 MOVE: p d6-d5
  20 moveindex 11
  21 MOVE: B c4-b3
  22 moveindex 12
  23 MOVE: q d8-d7
  24 moveindex 13
  25 MOVE: K e1-g1
  26 MOVE: R h1-f1
  27 moveindex 14
  28 MOVE: k e8-c8
  29 MOVE: r a8-d8
  30 moveindex 15
  31 MOVE: P e4-e5
  32 moveindex 16
  33 MOVE: p f7-f5
  34 moveindex 17
  35 MOVE: B c1-d2
  36 moveindex 18
  37 MOVE: q d7-d6
  38 moveindex 19
  39 MOVE: N f3-g5
  40 moveindex 20
  41 MOVE: n c6-a5
  42 moveindex 21
  43 MOVE: N g5-f7
  44 MOVE: p g6-
  45 moveindex 22
  46 MOVE: n g8-f6
  47 MOVE: N f7-
  48 moveindex 23
  49 MOVE: P e5-g7
  50 MOVE: n f6-
  51 moveindex 24
  52 MOVE: b f8-h6
  53 MOVE: @-g7
  54 moveindex 25
  55 MOVE: B d2-z7
  56 MOVE: b h6-
  57 moveindex 26
  58 MOVE: q d6-z1
  59 MOVE: h2-
  60 moveindex 27
  61 MOVE: B z7-g00
  62 MOVE: r h8-
  63 moveindex 28
  64 MOVE: q z1-h2
  65 MOVE: check
  66 moveindex 29
  67 MOVE: B g00-d6
  68 MOVE: p e7-
  69 moveindex 30
  70 MOVE: q h2-f0
  71 MOVE: K g1-
  72 end
  73 

functions

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 e2-e4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 2 [move] => p g7-g6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 1 ) [3] => MoveLine Object ( [movenum] => 3 [move] => B f1-c4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 4 [move] => p d7-d6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 2 ) [5] => MoveLine Object ( [movenum] => 5 [move] => P d2-d4 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 6 [move] => n b8-c6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 3 ) [7] => MoveLine Object ( [movenum] => 7 [move] => N g1-f3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 8 [move] => b c8-e6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 4 ) [9] => MoveLine Object ( [movenum] => 9 [move] => N b1-c3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 10 [move] => p d6-d5 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 5 ) [11] => MoveLine Object ( [movenum] => 11 [move] => B c4-b3 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 12 [move] => q d8-d7 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 6 ) [13] => MoveLine Object ( [movenum] => 13 [move] => K e1-g1;R h1-f1 [level] => 0 [comment] => [length] => 18 [newturn] => 1 [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 14 [move] => k e8-c8;r a8-d8 [level] => 0 [comment] => [length] => 20 [newturn] => [turn] => 7 ) [15] => MoveLine Object ( [movenum] => 15 [move] => P e4-e5 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 16 [move] => p f7-f5 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 8 ) [17] => MoveLine Object ( [movenum] => 17 [move] => B c1-d2 [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 9 ) [18] => MoveLine Object ( [movenum] => 18 [move] => q d7-d6 [level] => 0 [comment] => [length] => 12 [newturn] => [turn] => 9 ) [19] => MoveLine Object ( [movenum] => 19 [move] => N f3-g5 [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 10 ) [20] => MoveLine Object ( [movenum] => 20 [move] => n c6-a5 [level] => 0 [comment] => [length] => 13 [newturn] => [turn] => 10 ) [21] => MoveLine Object ( [movenum] => 21 [move] => N g5-f7;p g6- [level] => 0 [comment] => [length] => 17 [newturn] => 1 [turn] => 11 ) [22] => MoveLine Object ( [movenum] => 22 [move] => n g8-f6;N f7- [level] => 0 [comment] => [length] => 19 [newturn] => [turn] => 11 ) [23] => MoveLine Object ( [movenum] => 23 [move] => P e5-g7;n f6- [level] => 0 [comment] => [length] => 17 [newturn] => 1 [turn] => 12 ) [24] => MoveLine Object ( [movenum] => 24 [move] => b f8-h6;@-g7 [level] => 0 [comment] => [length] => 18 [newturn] => [turn] => 12 ) [25] => MoveLine Object ( [movenum] => 25 [move] => B d2-z7;b h6- [level] => 0 [comment] => [length] => 17 [newturn] => 1 [turn] => 13 ) [26] => MoveLine Object ( [movenum] => 26 [move] => q d6-z1;h2- [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 13 ) [27] => MoveLine Object ( [movenum] => 27 [move] => B z7-g00;r h8- [level] => 0 [comment] => [length] => 18 [newturn] => 1 [turn] => 14 ) [28] => MoveLine Object ( [movenum] => 28 [move] => q z1-h2;check [level] => 0 [comment] => [length] => 19 [newturn] => [turn] => 14 ) [29] => MoveLine Object ( [movenum] => 29 [move] => B g00-d6;p e7- [level] => 0 [comment] => [length] => 18 [newturn] => 1 [turn] => 15 ) [30] => MoveLine Object ( [movenum] => 30 [move] => q h2-f0;K g1- [level] => 0 [comment] => [length] => 19 [newturn] => [turn] => 15 ) )

allmoves

Array ( [0] => moveindex 30;MOVE: q h2-f0; MOVE: K g1- [1] => moveindex 29;MOVE: B g00-d6; MOVE: p e7- [2] => moveindex 28;MOVE: q z1-h2; MOVE: check [3] => moveindex 27;MOVE: B z7-g00; MOVE: r h8- [4] => moveindex 26;MOVE: q d6-z1; MOVE: h2- [5] => moveindex 25;MOVE: B d2-z7; MOVE: b h6- [6] => moveindex 24;MOVE: b f8-h6; MOVE: @-g7 [7] => moveindex 23;MOVE: P e5-g7; MOVE: n f6- [8] => moveindex 22;MOVE: n g8-f6; MOVE: N f7- [9] => moveindex 21;MOVE: N g5-f7; MOVE: p g6- [10] => moveindex 20;MOVE: n c6-a5 [11] => moveindex 19;MOVE: N f3-g5 [12] => moveindex 18;MOVE: q d7-d6 [13] => moveindex 17;MOVE: B c1-d2 [14] => moveindex 16;MOVE: p f7-f5 [15] => moveindex 15;MOVE: P e4-e5 [16] => moveindex 14;MOVE: k e8-c8; MOVE: r a8-d8 [17] => moveindex 13;MOVE: K e1-g1; MOVE: R h1-f1 [18] => moveindex 12;MOVE: q d8-d7 [19] => moveindex 11;MOVE: B c4-b3 [20] => moveindex 10;MOVE: p d6-d5 [21] => moveindex 9;MOVE: N b1-c3 [22] => moveindex 8;MOVE: b c8-e6 [23] => moveindex 7;MOVE: N g1-f3 [24] => moveindex 6;MOVE: n b8-c6 [25] => moveindex 5;MOVE: P d2-d4 [26] => moveindex 4;MOVE: p d7-d6 [27] => moveindex 3;MOVE: B f1-c4 [28] => moveindex 2;MOVE: p g7-g6 [29] => moveindex 1;MOVE: P e2-e4 )

movelist

1. P e2-e4 1... p g7-g6 2. B f1-c4 2... p d7-d6 3. P d2-d4 3... n b8-c6 4. N g1-f3 4... b c8-e6 5. N b1-c3 5... p d6-d5 6. B c4-b3 6... q d8-d7 7. K e1-g1;R h1-f1 7... k e8-c8;r a8-d8 8. P e4-e5 8... p f7-f5 9. B c1-d2 9... q d7-d6 10. N f3-g5 10... n c6-a5 11. N g5-f7;p g6- 11... n g8-f6;N f7- 12. P e5-g7;n f6- 12... b f8-h6;@-g7 13. B d2-z7;b h6- 13... q d6-z1;h2- 14. B z7-g00;r h8- 14... q z1-h2;check 15. B g00-d6;p e7- 15... q h2-f0;K g1-

constants

Array ( )