Please report any bugs or errors to Fergus Duniho
Syntax Error on line 56
No variable named $seed has been whitelisted for the global function.
Edit the Settings File for Apothecary Chess 1
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 empty b2 c2 d2 e2 g2 h2 i2 b9 c9 d9 e9 g9 h9 i9 set coin1 rand 0 1 1 set coin2 rand 0 1 2 if == #coin2 0 3 drop Q any b2 e2 i2 4 drop A any b2 e2 i2 5 drop G any b2 e2 i2 6 copy b2 b9 7 copy e2 e9 8 copy i2 i9 9 flip b9 e9 i9 10 else 11 drop Q any d2 e2 g2 12 drop A any d2 e2 g2 13 drop G any d2 e2 g2 14 copy d2 d9 15 copy e2 e9 16 copy g2 g9 17 flip d9 e9 g9 18 endif 19 if == #coin1 0 20 drop N last b2 c2 d2 21 drop N first g2 h2 i2 22 drop n last b9 c9 d9 23 drop n first g9 h9 i9 24 drop B last b2 c2 d2 25 drop B first g2 h2 i2 26 drop b last b9 c9 d9 27 drop b first g9 h9 i9 28 else 29 drop B last b2 c2 d2 30 drop B first g2 h2 i2 31 drop b last b9 c9 d9 32 drop b first g9 h9 i9 33 drop N last b2 c2 d2 34 drop N first g2 h2 i2 35 drop n last b9 c9 d9 36 drop n first g9 h9 i9 37 endif 38 if == thismove null 39 say This preset enforces the rules and displays legal moves. 40 endif 41 echo Please report any bugs or errors to Fergus Duniho 42 set ep false 43 set wpr 3 44 set bpr 8 45 set fps 2 46 set pzs 3 47 set wprom8 C N B W 48 set bprom8 c n b w 49 set wprom9 R C N B W 50 set bprom9 r c n b w 51 set wprom10 Q G A R C N B W 52 set bprom10 q g a r c n b w 53 setsystem maxmove 2 54 ban commands allmoves 55 allow moves 2 captures 1 promotions 2 56 set seed global seed 57 remind #coin1 #coin2 #seed 58 sub postauto1 59 if empty d0 60 delete d0 61 endif 62 if empty e0 63 delete e0 64 endif 65 if empty f0 66 delete f0 67 endif 68 if empty g0 69 delete g0 70 endif 71 if empty p2 72 delete p2 73 endif 74 if isupper old 75 die You may not capture your own pieces. 76 elseif islower moved 77 die You may not move one of your opponent's pieces. 78 endif 79 if != moved P 80 set ep false 81 if != space dest moved 82 die You may not change the type of this piece. 83 elseif capture 84 set nopvc 0 85 else 86 inc nopvc 87 endif 88 endif 89 endsub 90 sub postauto2 91 if empty d11 92 delete d11 93 endif 94 if empty e11 95 delete e11 96 endif 97 if empty f11 98 delete f11 99 endif 100 if islower old 101 die You may not capture your own pieces. 102 elseif isupper moved 103 die You may not move one of your opponent's pieces. 104 endif if empty g11: delete g11 105 endif 106 if empty p9 107 delete p9 108 endif 109 if != moved p 110 set ep false 111 if != space dest moved 112 die You may not change the type of this piece. 113 elseif capture 114 set nopvc 0 115 else 116 inc nopvc 117 endif 118 endif 119 endsub 120 end 121functions
uservar
Array ( [0] => Array ( [main] => Array ( [coin2] => 0 [ep] => [wpr] => 3 [bpr] => 8 [fps] => 2 [pzs] => 3 [wprom8] => Array ( [0] => W [1] => B [2] => N [3] => C ) [bprom8] => Array ( [0] => w [1] => b [2] => n [3] => c ) [wprom9] => Array ( [0] => W [1] => B [2] => N [3] => C [4] => R ) [bprom9] => Array ( [0] => w [1] => b [2] => n [3] => c [4] => r ) [wprom10] => Array ( [0] => W [1] => B [2] => N [3] => C [4] => R [5] => A [6] => G [7] => Q ) [bprom10] => Array ( [0] => w [1] => b [2] => n [3] => c [4] => r [5] => a [6] => g [7] => q ) ) ) )mline
Array ( [0] => MoveLine Object ( [movenum] => 0 [move] => [level] => 0 [comment] => [length] => 0 [newturn] => [turn] => 0 ) )allmoves
Array ( )movelist
constants
Array ( )