Syntax Error on line 48

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

Edit the Settings File for Accelerated 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: b2-b3
   2 moveindex 1
   3 MOVE: e7-e5
   4 MOVE: d7-d5
   5 moveindex 2
   6 MOVE: e2-e4
   7 MOVE:  d2-d4
   8 moveindex 3
   9 MOVE: d5-e4
  10 moveindex 4
  11 MOVE: d4-d5
  12 MOVE:  c1-b2
  13 moveindex 5
  14 MOVE: g8-f6
  15 MOVE: f8-d6
  16 moveindex 6
  17 MOVE: c2-c4
  18 MOVE:  b1-d2
  19 moveindex 7
  20 MOVE: c8-g4
  21 MOVE: b8-d7
  22 moveindex 8
  23 MOVE: d1-c2
  24 MOVE:  h2-h3
  25 moveindex 9
  26 MOVE: g4-f5
  27 MOVE: d6-c5
  28 moveindex 10
  29 MOVE: g1-e2
  30 MOVE:  e2-g3
  31 moveindex 11
  32 MOVE: f5-g6
  33 MOVE: e4-e3
  34 moveindex 12
  35 MOVE: d2-e4
  36 MOVE:  f2-f3
  37 moveindex 13
  38 MOVE: e3-e2
  39 MOVE: c5-f2
  40 moveindex 14
  41 MOVE: e1-f2
  42 moveindex 15
  43 MOVE: f6-e4
  44 moveindex 16
  45 MOVE: g3-e4
  46 moveindex 17
  47 MOVE: e2-e1
  48 MOVE: q-e1
  49 MOVE: d8-h4
  50 moveindex 18
  51 MOVE: resign
  52 end
  53 

functions

uservar

Array ( [0] => Array ( [main] => Array ( ) ) )

mline

Array ( [0] => MoveLine Object ( [movenum] => 1 [move] => b2-b3 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 1 ) [1] => MoveLine Object ( [movenum] => 2 [move] => e7-e5;d7-d5 [level] => 0 [comment] => [length] => 16 [newturn] => [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 3 [move] => e2-e4; d2-d4 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 2 ) [3] => MoveLine Object ( [movenum] => 4 [move] => d5-e4 [level] => 0 [comment] => // pxp [length] => 17 [newturn] => [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 5 [move] => d4-d5; c1-b2 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 3 ) [5] => MoveLine Object ( [movenum] => 6 [move] => g8-f6;f8-d6 [level] => 0 [comment] => [length] => 16 [newturn] => [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 7 [move] => c2-c4; b1-d2 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 4 ) [7] => MoveLine Object ( [movenum] => 8 [move] => c8-g4;b8-d7 [level] => 0 [comment] => [length] => 16 [newturn] => [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 9 [move] => d1-c2; h2-h3 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 5 ) [9] => MoveLine Object ( [movenum] => 10 [move] => g4-f5;d6-c5 [level] => 0 [comment] => [length] => 16 [newturn] => [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 11 [move] => g1-e2; e2-g3 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 6 ) [11] => MoveLine Object ( [movenum] => 12 [move] => f5-g6;e4-e3 [level] => 0 [comment] => [length] => 16 [newturn] => [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 13 [move] => d2-e4; f2-f3 [level] => 0 [comment] => [length] => 15 [newturn] => 1 [turn] => 7 ) [13] => MoveLine Object ( [movenum] => 14 [move] => e3-e2;c5-f2 [level] => 0 [comment] => // check [length] => 25 [newturn] => [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 15 [move] => e1-f2 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 8 ) [15] => MoveLine Object ( [movenum] => 16 [move] => f6-e4 [level] => 0 [comment] => // nxn [length] => 17 [newturn] => [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 17 [move] => g3-e4 [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 9 ) [17] => MoveLine Object ( [movenum] => 18 [move] => e2-e1;q-e1;d8-h4 [level] => 0 [comment] => // legal? [length] => 31 [newturn] => [turn] => 9 ) [18] => MoveLine Object ( [movenum] => 19 [move] => resign [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 10 ) )

allmoves

Array ( [0] => moveindex 18;MOVE: resign [1] => moveindex 17;MOVE: e2-e1; MOVE: q-e1; MOVE: d8-h4 [2] => moveindex 16;MOVE: g3-e4 [3] => moveindex 15;MOVE: f6-e4 [4] => moveindex 14;MOVE: e1-f2 [5] => moveindex 13;MOVE: e3-e2; MOVE: c5-f2 [6] => moveindex 12;MOVE: d2-e4; MOVE: f2-f3 [7] => moveindex 11;MOVE: f5-g6; MOVE: e4-e3 [8] => moveindex 10;MOVE: g1-e2; MOVE: e2-g3 [9] => moveindex 9;MOVE: g4-f5; MOVE: d6-c5 [10] => moveindex 8;MOVE: d1-c2; MOVE: h2-h3 [11] => moveindex 7;MOVE: c8-g4; MOVE: b8-d7 [12] => moveindex 6;MOVE: c2-c4; MOVE: b1-d2 [13] => moveindex 5;MOVE: g8-f6; MOVE: f8-d6 [14] => moveindex 4;MOVE: d4-d5; MOVE: c1-b2 [15] => moveindex 3;MOVE: d5-e4 [16] => moveindex 2;MOVE: e2-e4; MOVE: d2-d4 [17] => moveindex 1;MOVE: e7-e5; MOVE: d7-d5 [18] => moveindex 0;MOVE: b2-b3 )

movelist

1. b2-b3 1... e7-e5;d7-d5 2. e2-e4; d2-d4 2... d5-e4 // pxp 3. d4-d5; c1-b2 3... g8-f6;f8-d6 4. c2-c4; b1-d2 4... c8-g4;b8-d7 5. d1-c2; h2-h3 5... g4-f5;d6-c5 6. g1-e2; e2-g3 6... f5-g6;e4-e3 7. d2-e4; f2-f3 7... e3-e2;c5-f2 // check 8. e1-f2 8... f6-e4 // nxn 9. g3-e4 9... e2-e1;q-e1;d8-h4 // legal? 10. resign

constants

Array ( )