Syntax Error on line 0

The findpiece function expects a sequential array. It will not work with an associative array.

Edit the Settings File for Shogi

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 sub postauto1
   1   drop old first Ai Ah Ag Af Ae Ad Ac Ab Aa Bi Bh Bg Bf Be Bd Bc Bb Ba Ci Ch Cg Cf Ce Cd Cc Cb Ca Di Dh Dg Df De Dd Dc Db Da
   2   flip dest
   3   convert dest d r h b v s m l y n t p
   4 endsub
   5 sub postauto2
   6   drop old last Ai Ah Ag Af Ae Ad Ac Ab Aa Bi Bh Bg Bf Be Bd Bc Bb Ba Ci Ch Cg Cf Ce Cd Cc Cb Ca Di Dh Dg Df De Dd Dc Db Da
   7   flip dest
   8   convert dest D R H B V S M L Y N T P
   9 endsub
  10 moveindex 1
  11 MOVE: g 6i-7h
  12 postauto1
  13 moveindex 2
  14 MOVE: 3c-3d
  15 postauto2
  16 moveindex 3
  17 MOVE: p 7g-7f
  18 postauto1
  19 moveindex 4
  20 MOVE: 7a-6b
  21 postauto2
  22 moveindex 5
  23 MOVE: b 8h-7g
  24 postauto1
  25 moveindex 6
  26 MOVE: B 2b-7g
  27 MOVE:  7g-Da
  28 MOVE:  H-7g
  29 postauto2
  30 moveindex 7
  31 MOVE: g 7h-7g
  32 postauto1
  33 moveindex 8
  34 MOVE: 4a-3b
  35 postauto2
  36 moveindex 9
  37 MOVE: s 7i-8h
  38 postauto1
  39 moveindex 10
  40 MOVE: 6a-5b
  41 postauto2
  42 moveindex 11
  43 MOVE: p 9g-9f
  44 postauto1
  45 moveindex 12
  46 MOVE: 3a-4b
  47 postauto2
  48 moveindex 13
  49 MOVE: p 9f-9e
  50 postauto1
  51 moveindex 14
  52 MOVE: 5a-4a
  53 postauto2
  54 moveindex 15
  55 MOVE: n 8i-9g
  56 postauto1
  57 moveindex 16
  58 MOVE: Da-8d
  59 postauto2
  60 moveindex 17
  61 MOVE: b Ai-6f
  62 postauto1
  63 moveindex 18
  64 MOVE: 8d-6f
  65 postauto2
  66 moveindex 19
  67 MOVE: g 7g-6f
  68 postauto1
  69 moveindex 20
  70 MOVE: 9c-9d
  71 postauto2
  72 moveindex 21
  73 MOVE: p 9e-9d
  74 postauto1
  75 moveindex 22
  76 MOVE: 9a-9d
  77 postauto2
  78 moveindex 23
  79 MOVE: b*8f
  80 postauto1
  81 moveindex 24
  82 MOVE: 8b-9b
  83 postauto2
  84 moveindex 25
  85 MOVE: r 2h-7h
  86 postauto1
  87 moveindex 26
  88 MOVE: P*9f
  89 postauto2
  90 moveindex 27
  91 MOVE: p*9h
  92 postauto1
  93 moveindex 28
  94 MOVE: 9f-9g
  95 MOVE:  T-9g
  96 postauto2
  97 moveindex 29
  98 MOVE: p 9h-9g
  99 postauto1
 100 moveindex 30
 101 MOVE: N*7d
 102 postauto2
 103 moveindex 31
 104 MOVE: b 8f-7g
 105 postauto1
 106 moveindex 32
 107 MOVE: 7d-6f
 108 postauto2
 109 moveindex 33
 110 MOVE: p 6g-6f
 111 postauto1
 112 moveindex 34
 113 MOVE: G*6g
 114 postauto2
 115 moveindex 35
 116 MOVE: p 6f-6e
 117 postauto1
 118 moveindex 36
 119 MOVE: 6g-7g
 120 postauto2
 121 moveindex 37
 122 MOVE: r 7h-7g
 123 postauto1
 124 moveindex 38
 125 MOVE: B*6f
 126 postauto2
 127 moveindex 39
 128 MOVE: n*6i
 129 postauto1
 130 moveindex 40
 131 MOVE: B*4e
 132 postauto2
 133 moveindex 41
 134 MOVE: g*5f
 135 postauto1
 136 moveindex 42
 137 MOVE: 6f-7g
 138 MOVE:  H-7g
 139 postauto2
 140 moveindex 43
 141 MOVE: s 8h-7g
 142 postauto1
 143 moveindex 44
 144 MOVE: 4e-2g
 145 MOVE:  H-2g
 146 postauto2
 147 moveindex 45
 148 MOVE: b*6a
 149 postauto1
 150 moveindex 46
 151 MOVE: R*8i
 152 postauto2
 153 moveindex 47
 154 MOVE: b 6a-8c
 155 MOVE:  h-8c
 156 postauto1
 157 moveindex 48
 158 MOVE: 2g-4i
 159 postauto2
 160 moveindex 49
 161 MOVE: k 5i-4i
 162 postauto1
 163 moveindex 50
 164 MOVE: 8i-6i
 165 MOVE:  D-6i
 166 postauto2
 167 moveindex 51
 168 MOVE: k 4i-3h
 169 postauto1
 170 moveindex 52
 171 MOVE: N*3e
 172 postauto2
 173 moveindex 53
 174 MOVE: b*3f
 175 postauto1
 176 moveindex 54
 177 MOVE: 6i-5h
 178 postauto2
 179 moveindex 55
 180 MOVE: s 3i-4h
 181 postauto1
 182 moveindex 56
 183 MOVE: G*2g
 184 postauto2
 185 moveindex 57
 186 MOVE: b 3f-2g
 187 postauto1
 188 moveindex 58
 189 MOVE: 3e-4g
 190 MOVE:  Y-4g
 191 postauto2
 192 moveindex 59
 193 MOVE: k 3h-2h
 194 postauto1
 195 moveindex 60
 196 MOVE: 5h-4h
 197 postauto2
 198 moveindex 61
 199 MOVE: g*3h
 200 postauto1
 201 moveindex 62
 202 MOVE: S*3i
 203 postauto2
 204 moveindex 63
 205 MOVE: k 2h-1h
 206 postauto1
 207 moveindex 64
 208 MOVE: 4h-3h
 209 postauto2
 210 moveindex 65
 211 MOVE: b 2g-3h
 212 postauto1
 213 moveindex 66
 214 MOVE: G*2h
 215 postauto2
 216 end
 217 

functions

uservar

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

mline

Array ( [0] => MoveLine Object ( [movenum] => 0 [move] => [level] => 0 [comment] => [length] => 0 [newturn] => [turn] => 0 ) [1] => MoveLine Object ( [movenum] => 1 [move] => g 6i-7h [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 1 ) [2] => MoveLine Object ( [movenum] => 2 [move] => 3c-3d [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 1 ) [3] => MoveLine Object ( [movenum] => 3 [move] => p 7g-7f [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 2 ) [4] => MoveLine Object ( [movenum] => 4 [move] => 7a-6b [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 2 ) [5] => MoveLine Object ( [movenum] => 5 [move] => b 8h-7g [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 3 ) [6] => MoveLine Object ( [movenum] => 6 [move] => B 2b-7g; 7g-Da; H-7g [level] => 0 [comment] => [length] => 25 [newturn] => [turn] => 3 ) [7] => MoveLine Object ( [movenum] => 7 [move] => g 7h-7g [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 4 ) [8] => MoveLine Object ( [movenum] => 8 [move] => 4a-3b [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 4 ) [9] => MoveLine Object ( [movenum] => 9 [move] => s 7i-8h [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 5 ) [10] => MoveLine Object ( [movenum] => 10 [move] => 6a-5b [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 5 ) [11] => MoveLine Object ( [movenum] => 11 [move] => p 9g-9f [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 6 ) [12] => MoveLine Object ( [movenum] => 12 [move] => 3a-4b [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 6 ) [13] => MoveLine Object ( [movenum] => 13 [move] => p 9f-9e [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 7 ) [14] => MoveLine Object ( [movenum] => 14 [move] => 5a-4a [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 7 ) [15] => MoveLine Object ( [movenum] => 15 [move] => n 8i-9g [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 8 ) [16] => MoveLine Object ( [movenum] => 16 [move] => Da-8d [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 8 ) [17] => MoveLine Object ( [movenum] => 17 [move] => b Ai-6f [level] => 0 [comment] => [length] => 10 [newturn] => 1 [turn] => 9 ) [18] => MoveLine Object ( [movenum] => 18 [move] => 8d-6f [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 9 ) [19] => MoveLine Object ( [movenum] => 19 [move] => g 7g-6f [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 10 ) [20] => MoveLine Object ( [movenum] => 20 [move] => 9c-9d [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 10 ) [21] => MoveLine Object ( [movenum] => 21 [move] => p 9e-9d [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 11 ) [22] => MoveLine Object ( [movenum] => 22 [move] => 9a-9d [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 11 ) [23] => MoveLine Object ( [movenum] => 23 [move] => b*8f [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 12 ) [24] => MoveLine Object ( [movenum] => 24 [move] => 8b-9b [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 12 ) [25] => MoveLine Object ( [movenum] => 25 [move] => r 2h-7h [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 13 ) [26] => MoveLine Object ( [movenum] => 26 [move] => P*9f [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 13 ) [27] => MoveLine Object ( [movenum] => 27 [move] => p*9h [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 14 ) [28] => MoveLine Object ( [movenum] => 28 [move] => 9f-9g; T-9g [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 14 ) [29] => MoveLine Object ( [movenum] => 29 [move] => p 9h-9g [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 15 ) [30] => MoveLine Object ( [movenum] => 30 [move] => N*7d [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 15 ) [31] => MoveLine Object ( [movenum] => 31 [move] => b 8f-7g [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 16 ) [32] => MoveLine Object ( [movenum] => 32 [move] => 7d-6f [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 16 ) [33] => MoveLine Object ( [movenum] => 33 [move] => p 6g-6f [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 17 ) [34] => MoveLine Object ( [movenum] => 34 [move] => G*6g [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 17 ) [35] => MoveLine Object ( [movenum] => 35 [move] => p 6f-6e [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 18 ) [36] => MoveLine Object ( [movenum] => 36 [move] => 6g-7g [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 18 ) [37] => MoveLine Object ( [movenum] => 37 [move] => r 7h-7g [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 19 ) [38] => MoveLine Object ( [movenum] => 38 [move] => B*6f [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 19 ) [39] => MoveLine Object ( [movenum] => 39 [move] => n*6i [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 20 ) [40] => MoveLine Object ( [movenum] => 40 [move] => B*4e [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 20 ) [41] => MoveLine Object ( [movenum] => 41 [move] => g*5f [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 21 ) [42] => MoveLine Object ( [movenum] => 42 [move] => 6f-7g; H-7g [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 21 ) [43] => MoveLine Object ( [movenum] => 43 [move] => s 8h-7g [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 22 ) [44] => MoveLine Object ( [movenum] => 44 [move] => 4e-2g; H-2g [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 22 ) [45] => MoveLine Object ( [movenum] => 45 [move] => b*6a [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 23 ) [46] => MoveLine Object ( [movenum] => 46 [move] => R*8i [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 23 ) [47] => MoveLine Object ( [movenum] => 47 [move] => b 6a-8c; h-8c [level] => 0 [comment] => [length] => 17 [newturn] => 1 [turn] => 24 ) [48] => MoveLine Object ( [movenum] => 48 [move] => 2g-4i [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 24 ) [49] => MoveLine Object ( [movenum] => 49 [move] => k 5i-4i [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 25 ) [50] => MoveLine Object ( [movenum] => 50 [move] => 8i-6i; D-6i [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 25 ) [51] => MoveLine Object ( [movenum] => 51 [move] => k 4i-3h [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 26 ) [52] => MoveLine Object ( [movenum] => 52 [move] => N*3e [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 26 ) [53] => MoveLine Object ( [movenum] => 53 [move] => b*3f [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 27 ) [54] => MoveLine Object ( [movenum] => 54 [move] => 6i-5h [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 27 ) [55] => MoveLine Object ( [movenum] => 55 [move] => s 3i-4h [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 28 ) [56] => MoveLine Object ( [movenum] => 56 [move] => G*2g [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 28 ) [57] => MoveLine Object ( [movenum] => 57 [move] => b 3f-2g [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 29 ) [58] => MoveLine Object ( [movenum] => 58 [move] => 3e-4g; Y-4g [level] => 0 [comment] => [length] => 17 [newturn] => [turn] => 29 ) [59] => MoveLine Object ( [movenum] => 59 [move] => k 3h-2h [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 30 ) [60] => MoveLine Object ( [movenum] => 60 [move] => 5h-4h [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 30 ) [61] => MoveLine Object ( [movenum] => 61 [move] => g*3h [level] => 0 [comment] => [length] => 8 [newturn] => 1 [turn] => 31 ) [62] => MoveLine Object ( [movenum] => 62 [move] => S*3i [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 31 ) [63] => MoveLine Object ( [movenum] => 63 [move] => k 2h-1h [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 32 ) [64] => MoveLine Object ( [movenum] => 64 [move] => 4h-3h [level] => 0 [comment] => [length] => 11 [newturn] => [turn] => 32 ) [65] => MoveLine Object ( [movenum] => 65 [move] => b 2g-3h [level] => 0 [comment] => [length] => 11 [newturn] => 1 [turn] => 33 ) [66] => MoveLine Object ( [movenum] => 66 [move] => G*2h [level] => 0 [comment] => [length] => 10 [newturn] => [turn] => 33 ) )

allmoves

Array ( [0] => moveindex 66;MOVE: G*2h;postauto2 [1] => moveindex 65;MOVE: b 2g-3h;postauto1 [2] => moveindex 64;MOVE: 4h-3h;postauto2 [3] => moveindex 63;MOVE: k 2h-1h;postauto1 [4] => moveindex 62;MOVE: S*3i;postauto2 [5] => moveindex 61;MOVE: g*3h;postauto1 [6] => moveindex 60;MOVE: 5h-4h;postauto2 [7] => moveindex 59;MOVE: k 3h-2h;postauto1 [8] => moveindex 58;MOVE: 3e-4g; MOVE: Y-4g;postauto2 [9] => moveindex 57;MOVE: b 3f-2g;postauto1 [10] => moveindex 56;MOVE: G*2g;postauto2 [11] => moveindex 55;MOVE: s 3i-4h;postauto1 [12] => moveindex 54;MOVE: 6i-5h;postauto2 [13] => moveindex 53;MOVE: b*3f;postauto1 [14] => moveindex 52;MOVE: N*3e;postauto2 [15] => moveindex 51;MOVE: k 4i-3h;postauto1 [16] => moveindex 50;MOVE: 8i-6i; MOVE: D-6i;postauto2 [17] => moveindex 49;MOVE: k 5i-4i;postauto1 [18] => moveindex 48;MOVE: 2g-4i;postauto2 [19] => moveindex 47;MOVE: b 6a-8c; MOVE: h-8c;postauto1 [20] => moveindex 46;MOVE: R*8i;postauto2 [21] => moveindex 45;MOVE: b*6a;postauto1 [22] => moveindex 44;MOVE: 4e-2g; MOVE: H-2g;postauto2 [23] => moveindex 43;MOVE: s 8h-7g;postauto1 [24] => moveindex 42;MOVE: 6f-7g; MOVE: H-7g;postauto2 [25] => moveindex 41;MOVE: g*5f;postauto1 [26] => moveindex 40;MOVE: B*4e;postauto2 [27] => moveindex 39;MOVE: n*6i;postauto1 [28] => moveindex 38;MOVE: B*6f;postauto2 [29] => moveindex 37;MOVE: r 7h-7g;postauto1 [30] => moveindex 36;MOVE: 6g-7g;postauto2 [31] => moveindex 35;MOVE: p 6f-6e;postauto1 [32] => moveindex 34;MOVE: G*6g;postauto2 [33] => moveindex 33;MOVE: p 6g-6f;postauto1 [34] => moveindex 32;MOVE: 7d-6f;postauto2 [35] => moveindex 31;MOVE: b 8f-7g;postauto1 [36] => moveindex 30;MOVE: N*7d;postauto2 [37] => moveindex 29;MOVE: p 9h-9g;postauto1 [38] => moveindex 28;MOVE: 9f-9g; MOVE: T-9g;postauto2 [39] => moveindex 27;MOVE: p*9h;postauto1 [40] => moveindex 26;MOVE: P*9f;postauto2 [41] => moveindex 25;MOVE: r 2h-7h;postauto1 [42] => moveindex 24;MOVE: 8b-9b;postauto2 [43] => moveindex 23;MOVE: b*8f;postauto1 [44] => moveindex 22;MOVE: 9a-9d;postauto2 [45] => moveindex 21;MOVE: p 9e-9d;postauto1 [46] => moveindex 20;MOVE: 9c-9d;postauto2 [47] => moveindex 19;MOVE: g 7g-6f;postauto1 [48] => moveindex 18;MOVE: 8d-6f;postauto2 [49] => moveindex 17;MOVE: b Ai-6f;postauto1 [50] => moveindex 16;MOVE: Da-8d;postauto2 [51] => moveindex 15;MOVE: n 8i-9g;postauto1 [52] => moveindex 14;MOVE: 5a-4a;postauto2 [53] => moveindex 13;MOVE: p 9f-9e;postauto1 [54] => moveindex 12;MOVE: 3a-4b;postauto2 [55] => moveindex 11;MOVE: p 9g-9f;postauto1 [56] => moveindex 10;MOVE: 6a-5b;postauto2 [57] => moveindex 9;MOVE: s 7i-8h;postauto1 [58] => moveindex 8;MOVE: 4a-3b;postauto2 [59] => moveindex 7;MOVE: g 7h-7g;postauto1 [60] => moveindex 6;MOVE: B 2b-7g; MOVE: 7g-Da; MOVE: H-7g;postauto2 [61] => moveindex 5;MOVE: b 8h-7g;postauto1 [62] => moveindex 4;MOVE: 7a-6b;postauto2 [63] => moveindex 3;MOVE: p 7g-7f;postauto1 [64] => moveindex 2;MOVE: 3c-3d;postauto2 [65] => moveindex 1;MOVE: g 6i-7h;postauto1 )

movelist

1. g 6i-7h 1... 3c-3d 2. p 7g-7f 2... 7a-6b 3. b 8h-7g 3... B 2b-7g; 7g-Da; H-7g 4. g 7h-7g 4... 4a-3b 5. s 7i-8h 5... 6a-5b 6. p 9g-9f 6... 3a-4b 7. p 9f-9e 7... 5a-4a 8. n 8i-9g 8... Da-8d 9. b Ai-6f 9... 8d-6f 10. g 7g-6f 10... 9c-9d 11. p 9e-9d 11... 9a-9d 12. b*8f 12... 8b-9b 13. r 2h-7h 13... P*9f 14. p*9h 14... 9f-9g; T-9g 15. p 9h-9g 15... N*7d 16. b 8f-7g 16... 7d-6f 17. p 6g-6f 17... G*6g 18. p 6f-6e 18... 6g-7g 19. r 7h-7g 19... B*6f 20. n*6i 20... B*4e 21. g*5f 21... 6f-7g; H-7g 22. s 8h-7g 22... 4e-2g; H-2g 23. b*6a 23... R*8i 24. b 6a-8c; h-8c 24... 2g-4i 25. k 5i-4i 25... 8i-6i; D-6i 26. k 4i-3h 26... N*3e 27. b*3f 27... 6i-5h 28. s 3i-4h 28... G*2g 29. b 3f-2g 29... 3e-4g; Y-4g 30. k 3h-2h 30... 5h-4h 31. g*3h 31... S*3i 32. k 2h-1h 32... 4h-3h 33. b 2g-3h 33... G*2h

constants

Array ( )