15 declare sub number1 ()
16 declare sub number2 ()
17 declare sub number3 ()
18 declare sub number4 ()
19 declare sub number5 ()
20 declare sub number6 ()
21 declare sub number7 ()
22 declare sub number8 ()
23 declare sub number9 ()
24 declare sub number0 ()
25 declare sub numberA ()
26 declare sub numberB ()
27 declare sub numberC ()
28 declare sub numberD ()
29 declare sub numberE ()
30 declare sub numberF ()
31 declare sub numberG ()
32 declare sub numberH ()
33 declare sub numberI ()
34 declare sub numberJ ()
35 declare sub letter1 ()
36 declare sub letter2 ()
37 declare sub letter3 ()
38 declare sub letter4 ()
39 declare sub letter5 ()
40 declare sub letter6 ()
41 declare sub letter7 ()
42 declare sub letter8 ()
43 declare sub letter9 ()
44 declare sub letter0 ()
45 declare sub letterA ()
46 declare sub letterB ()
47 declare sub letterC ()
48 declare sub letterD ()
49 declare sub letterE ()
50 declare sub letterF ()
51 declare sub letterG ()
52 declare sub letterH ()
53 declare sub letterI ()
54 declare sub letterJ ()
63 declare sub general ()
68 declare sub checker ()
71 declare sub chessboard ()
72 declare sub makrukboard ()
73 declare sub xiangqiboard ()
74 declare sub shogiboard ()
75 declare sub draughtsboard ()
78 declare sub xiangqi ()
80 declare sub draughts ()
81 declare sub chessfen ()
82 declare sub makrukfen ()
83 declare sub xiangqifen ()
84 declare sub shogifen ()
85 declare sub draughtsfen ()
87 Common Shared x, y, cd1, cd2, cn, cl, cf, cb1, cb2, cb3, cb4, cb5 As Integer
88 Common Shared dc1, dc2, dc3, dc4, dc5, dc6, w1, b1, w2, b2, w3, b3, w4, b4, fw1, fb1, fw2, fb2, fw3, fb3, fw4, fb4, row, col, index, count As Integer
89 Common Shared fw1x, fw1y, fb1x, fb1y, fw2x, fw2y, fb2x, fb2y, fw3x, fw3y, fb3x, fb3y, fw4x, fw4y, fb4x, fb4y As Integer
90 Common Shared fig1w, fig1b, fig2w, fig2b, fig3w, fig3b, fig4w, fig4b, mas1, mas2, mas3, mas4, mas5, mas6, mas7, mas8, mas9, mas0, lin1, lin2, lin3, lin4, lin5, lin6, lin7, lin8, lin9, lin0, fen As String
91 Let cd1 = 2: Let cd2 = 15: Let cn = 7: Let cl = 14: Let cf = 1: Let cb1 = 7: Let cb2 = 6: Let cb3 = 3: Let cb4 = 13: Let cb5 = 9
93 Dim Shared board(8, 8) As Integer
95 For row = 1 To 8: For col = 1 To 8
96 Let board(row, col) = index + 1
100 Dim Shared xiabo(10, 9) As Integer
102 For row = 1 To 10: For col = 1 To 9
103 Let xiabo(row, col) = index + 1
104 Let index = index + 1
107 Dim Shared shobo(9, 9) As Integer
109 For row = 1 To 9: For col = 1 To 9
110 Let shobo(row, col) = index + 1
111 Let index = index + 1
114 Dim Shared drabo(10, 10) As Integer
116 For row = 1 To 10: For col = 1 To 10
117 Let drabo(row, col) = index + 1
118 Let index = index + 1
119 Next col: Let index = index + 1: Next row
121 Line (2, 2)-(122, 4), 14, BF: Line -(120, 338), 14, BF: Line -(2, 336), 14, BF: Line -(4, 2), 14, BF
122 Line (4, 42)-(120, 44), 14, BF: Paint (20, 20), 8, 14
123 Line (128, 2)-(248, 4), 14, BF: Line -(246, 338), 14, BF: Line -(128, 336), 14, BF: Line -(130, 2), 14, BF
124 Line (130, 42)-(246, 44), 14, BF: Paint (160, 20), 8, 14
125 Line (254, 2)-(394, 4), 14, BF: Line -(392, 386), 14, BF: Line -(254, 384), 14, BF: Line -(256, 2), 14, BF
126 Line (256, 42)-(392, 44), 14, BF: Paint (300, 20), 8, 14
127 Line (400, 2)-(637, 4), 14, BF: Line -(635, 338), 14, BF: Line -(400, 336), 14, BF: Line -(402, 2), 14, BF
128 Line (402, 42)-(635, 44), 14, BF: Paint (440, 20), 8, 14
129 Line (2, 344)-(248, 346), 14, BF: Line -(246, 432), 14, BF: Line -(2, 430), 14, BF: Line -(4, 344), 14, BF
130 Line (4, 378)-(246, 376), 14, BF: Paint (20, 360), 8, 14
131 Color 14, 8: Locate 2, 4: Print "1 - Chess": Locate 2, 19: Print "2 - Makruk": Locate 2, 36: Print "3 - Xiangqi": Locate 2, 61: Print "4 - Shogi": Locate 23, 10: Print "5 - Draughts"
132 Color 12, 0: Locate 23, 52: Print "Press number to select game": Locate 24, 59: Print "or Esc to exit"
135 Let x = 10: For y = 50 To 300 Step 48
138 Let x = 10: Let y = 50: Call king
139 Let x = 10: Let y = y + 48: Call queen
140 Let x = 10: Let y = y + 48: Call bishop
141 Let x = 10: Let y = y + 48: Call knight
142 Let x = 10: Let y = y + 48: Call rook
143 Let x = 10: Let y = y + 48: Call pawn
144 Locate 5, 9: Print "King": Locate 8, 9: Print "Queen"
145 Locate 11, 9: Print "Bishop": Locate 14, 9: Print "Knight"
146 Locate 17, 9: Print "Rook": Locate 20, 9: Print "Pawn"
147 Let x = 136: For y = 50 To 300 Step 48
150 Let x = 136: Let y = 50: Call king
151 Let x = 136: Let y = y + 48: Call queen
152 Let x = 136: Let y = y + 48: Call bishop
153 Let x = 136: Let y = y + 48: Call knight
154 Let x = 136: Let y = y + 48: Call rook
155 Let x = 136: Let y = y + 48: Call checker
156 Locate 5, 25: Print "Lord": Locate 8, 25: Print "Seed"
157 Locate 11, 25: Print "Noble": Locate 14, 25: Print "Horse"
158 Locate 17, 25: Print "Boat": Locate 20, 25: Print "Shell"
159 Let x = 262: For y = 50 To 350 Step 48
162 Let x = 262: Let y = 50: Call king
163 Let x = 262: Let y = y + 48: Call queen
164 Let x = 262: Let y = y + 48: Call bishop
165 Let x = 262: Let y = y + 48: Call knight
166 Let x = 262: Let y = y + 48: Call rook
167 Let x = 262: Let y = y + 48: Call cannon
168 Let x = 262: Let y = y + 48: Call pawn
169 Locate 5, 41: Print "General": Locate 8, 41: Print "Advisor"
170 Locate 11, 41: Print "Elephant": Locate 14, 41: Print "Horse"
171 Locate 17, 41: Print "Chariot": Locate 20, 41: Print "Cannon"
172 Locate 23, 41: Print "Soldier"
173 Let x = 408: For y = 50 To 300 Step 48
176 Let x = 528: For y = 50 To 250 Step 48
179 Let x = 408: Let y = 50: Call king
180 Let x = 408: Let y = y + 48: Call queen
181 Let x = 408: Let y = y + 48: Call general
182 Let x = 408: Let y = y + 48: Call bishop
183 Let x = 408: Let y = y + 48: Call knight
184 Let x = 408: Let y = y + 48: Call rook
185 Let x = 528: Let y = 50: Call lance
186 Let x = 528: Let y = y + 48: Call pawn
187 Let x = 528: Let y = y + 48: Call horse
188 Let x = 528: Let y = y + 48: Call dragon
189 Let x = 528: Let y = y + 48: Call tokin
190 Locate 5, 59: Print "King": Locate 8, 59: Print "Gold"
191 Locate 11, 59: Print "Silver": Locate 14, 59: Print "Bishop"
192 Locate 17, 59: Print "Knight": Locate 20, 59: Print "Rook"
193 Locate 5, 74: Print "Lance": Locate 8, 74: Print "Pawn"
194 Locate 11, 74: Print "Horse": Locate 14, 74: Print "Dragon"
195 Locate 17, 74: Print "Tokin"
196 Let x = 10: Let y = 384
197 Call cells: Call checker
198 Let x = 136: Let y = 384
199 Call cells: Call dame
200 Locate 26, 9: Print "Checker": Locate 26, 25: Print "Dame"
241 Line (x, y)-(40 + x, 40 + y), cd1, BF
242 Line (16 + x, 16 + y)-(24 + x, 24 + y), cd2, BF
246 Line (x, y)-(40 + x, 40 + y), cd1, BF
247 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
248 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
252 Line (x, y)-(40 + x, 40 + y), cd1, BF
253 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
254 Line (16 + x, 16 + y)-(24 + x, 24 + y), cd2, BF
255 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
259 Line (x, y)-(40 + x, 40 + y), cd1, BF
260 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
261 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
262 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
263 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
267 Line (x, y)-(40 + x, 40 + y), cd1, BF
268 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
269 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
270 Line (16 + x, 16 + y)-(24 + x, 24 + y), cd2, BF
271 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
272 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
276 Line (x, y)-(40 + x, 40 + y), cd1, BF
277 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
278 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
279 Line (4 + x, 16 + y)-(12 + x, 24 + y), cd2, BF
280 Line (28 + x, 16 + y)-(36 + x, 24 + y), cd2, BF
281 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
282 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
286 Line (x, y)-(40 + x, 40 + y), cd1, BF
287 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
288 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
289 Line (4 + x, 16 + y)-(12 + x, 24 + y), cd2, BF
290 Line (16 + x, 16 + y)-(24 + x, 24 + y), cd2, BF
291 Line (28 + x, 16 + y)-(36 + x, 24 + y), cd2, BF
292 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
293 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
297 Line (x, y)-(40 + x, 40 + y), cd1, BF
298 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
299 Line (16 + x, 4 + y)-(24 + x, 12 + y), cd2, BF
300 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
301 Line (4 + x, 16 + y)-(12 + x, 24 + y), cd2, BF
302 Line (28 + x, 16 + y)-(36 + x, 24 + y), cd2, BF
303 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
304 Line (16 + x, 28 + y)-(24 + x, 36 + y), cd2, BF
305 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
309 Line (x, y)-(40 + x, 40 + y), cd1, BF
310 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
311 Line (16 + x, 4 + y)-(24 + x, 12 + y), cd2, BF
312 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
313 Line (4 + x, 16 + y)-(12 + x, 24 + y), cd2, BF
314 Line (16 + x, 16 + y)-(24 + x, 24 + y), cd2, BF
315 Line (28 + x, 16 + y)-(36 + x, 24 + y), cd2, BF
316 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
317 Line (16 + x, 28 + y)-(24 + x, 36 + y), cd2, BF
318 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
322 Line (x, y)-(40 + x, 40 + y), cd1, BF
323 Line (4 + x, 4 + y)-(12 + x, 12 + y), cd2, BF
324 Line (28 + x, 4 + y)-(36 + x, 12 + y), cd2, BF
325 Line (4 + x, 16 + y)-(12 + x, 24 + y), cd2, BF
326 Line (28 + x, 16 + y)-(36 + x, 24 + y), cd2, BF
327 Line (4 + x, 28 + y)-(12 + x, 36 + y), cd2, BF
328 Line (28 + x, 28 + y)-(36 + x, 36 + y), cd2, BF
329 Line (16 + x, 1 + y)-(24 + x, 9 + y), cd2, BF
330 Line (16 + x, 11 + y)-(24 + x, 19 + y), cd2, BF
331 Line (16 + x, 21 + y)-(24 + x, 29 + y), cd2, BF
332 Line (16 + x, 31 + y)-(24 + x, 39 + y), cd2, BF
336 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
337 Line (5 + x, 8 + y)-(6 + x, 1 + y), cn, BF
338 Line (4 + x, 2 + y)-(1 + x, 5 + y), cn
339 Line (4 + x, 3 + y)-(1 + x, 6 + y), cn
343 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
344 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
345 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
346 Line (1 + x, 8 + y)-(2 + x, 7 + y), cn, BF
347 Line (10 + x, 4 + y)-(9 + x, 3 + y), cn, BF
351 Line (2 + x, 2 + y)-(9 + x, 1 + y), cn, BF
352 Line (2 + x, 10 + y)-(9 + x, 9 + y), cn, BF
353 Line (5 + x, 5 + y)-(9 + x, 6 + y), cn, BF
354 Line (9 + x, 2 + y)-(10 + x, 4 + y), cn, BF
355 Line (9 + x, 7 + y)-(10 + x, 9 + y), cn, BF
359 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
360 Line (1 + x, 1 + y)-(2 + x, 4 + y), cn, BF
361 Line (9 + x, 1 + y)-(10 + x, 10 + y), cn, BF
365 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
366 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
367 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
368 Line (10 + x, 8 + y)-(9 + x, 7 + y), cn, BF
369 Line (2 + x, 4 + y)-(1 + x, 3 + y), cn, BF
373 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
374 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
375 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
376 Line (10 + x, 8 + y)-(9 + x, 7 + y), cn, BF
377 Line (1 + x, 8 + y)-(2 + x, 3 + y), cn, BF
381 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
382 Line (10 + x, 3 + y)-(3 + x, 10 + y), cn
383 Line (9 + x, 3 + y)-(2 + x, 10 + y), cn
384 Line (8 + x, 3 + y)-(1 + x, 10 + y), cn
388 Line (2 + x, 2 + y)-(9 + x, 1 + y), cn, BF
389 Line (2 + x, 10 + y)-(9 + x, 9 + y), cn, BF
390 Line (2 + x, 6 + y)-(9 + x, 5 + y), cn, BF
391 Line (1 + x, 2 + y)-(2 + x, 4 + y), cn, BF
392 Line (1 + x, 7 + y)-(2 + x, 9 + y), cn, BF
393 Line (9 + x, 2 + y)-(10 + x, 4 + y), cn, BF
394 Line (9 + x, 7 + y)-(10 + x, 9 + y), cn, BF
398 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
399 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
400 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
401 Line (10 + x, 8 + y)-(9 + x, 3 + y), cn, BF
402 Line (2 + x, 4 + y)-(1 + x, 3 + y), cn, BF
406 Line (2 + x, 2 + y)-(9 + x, 1 + y), cn, BF
407 Line (2 + x, 10 + y)-(9 + x, 9 + y), cn, BF
408 Line (1 + x, 2 + y)-(2 + x, 9 + y), cn, BF
409 Line (9 + x, 2 + y)-(10 + x, 9 + y), cn, BF
413 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
414 Line (1 + x, 2 + y)-(2 + x, 10 + y), cn, BF
415 Line (9 + x, 2 + y)-(10 + x, 10 + y), cn, BF
416 Line (2 + x, 2 + y)-(9 + x, 1 + y), cn, BF
420 Line (1 + x, 1 + y)-(2 + x, 10 + y), cn, BF
421 Line (1 + x, 10 + y)-(9 + x, 9 + y), cn, BF
422 Line (1 + x, 6 + y)-(9 + x, 5 + y), cn, BF
423 Line (1 + x, 2 + y)-(9 + x, 1 + y), cn, BF
424 Line (9 + x, 2 + y)-(10 + x, 4 + y), cn, BF
425 Line (9 + x, 7 + y)-(10 + x, 9 + y), cn, BF
429 Line (1 + x, 1 + y)-(2 + x, 10 + y), cn, BF
430 Line (1 + x, 1 + y)-(10 + x, 2 + y), cn, BF
431 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
435 Line (2 + x, 2 + y)-(9 + x, 1 + y), cn, BF
436 Line (2 + x, 10 + y)-(9 + x, 9 + y), cn, BF
437 Line (1 + x, 1 + y)-(2 + x, 10 + y), cn, BF
438 Line (9 + x, 2 + y)-(10 + x, 9 + y), cn, BF
442 Line (1 + x, 1 + y)-(2 + x, 10 + y), cn, BF
443 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
444 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
445 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
449 Line (1 + x, 1 + y)-(2 + x, 10 + y), cn, BF
450 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
451 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
455 Line (1 + x, 10 + y)-(10 + x, 9 + y), cn, BF
456 Line (8 + x, 6 + y)-(6 + x, 5 + y), cn, BF
457 Line (1 + x, 2 + y)-(10 + x, 1 + y), cn, BF
458 Line (10 + x, 8 + y)-(9 + x, 5 + y), cn, BF
459 Line (1 + x, 8 + y)-(2 + x, 3 + y), cn, BF
463 Line (1 + x, 6 + y)-(10 + x, 5 + y), cn, BF
464 Line (1 + x, 1 + y)-(2 + x, 10 + y), cn, BF
465 Line (9 + x, 1 + y)-(10 + x, 10 + y), cn, BF
469 Line (3 + x, 2 + y)-(8 + x, 1 + y), cn, BF
470 Line (3 + x, 10 + y)-(8 + x, 9 + y), cn, BF
471 Line (5 + x, 3 + y)-(6 + x, 8 + y), cn, BF
475 Line (1 + x, 6 + y)-(2 + x, 9 + y), cn, BF
476 Line (9 + x, 1 + y)-(10 + x, 9 + y), cn, BF
477 Line (2 + x, 9 + y)-(9 + x, 10 + y), cn, BF
481 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
482 Line (18 + x, 31 + y)-(22 + x, 4 + y), cl, BF
483 Line (17 + x, 4 + y)-(4 + x, 17 + y), cl
484 Line (17 + x, 5 + y)-(5 + x, 17 + y), cl
485 Line (17 + x, 6 + y)-(6 + x, 17 + y), cl
486 Line (17 + x, 7 + y)-(7 + x, 17 + y), cl
490 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
491 Line (4 + x, 18 + y)-(36 + x, 22 + y), cl, BF
492 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
493 Line (32 + x, 9 + y)-(36 + x, 17 + y), cl, BF
494 Line (4 + x, 23 + y)-(8 + x, 31 + y), cl, BF
498 Line (4 + x, 4 + y)-(34 + x, 8 + y), cl, BF
499 Line (4 + x, 36 + y)-(34 + x, 32 + y), cl, BF
500 Line (36 + x, 23 + y)-(32 + x, 34 + y), cl, BF
501 Line (32 + x, 6 + y)-(36 + x, 17 + y), cl, BF
502 Line (18 + x, 18 + y)-(34 + x, 22 + y), cl, BF
503 Line (30 + x, 17 + y)-(31 + x, 17 + y), cl
504 Line (30 + x, 23 + y)-(31 + x, 23 + y), cl
505 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
506 Line (30 + x, 31 + y)-(31 + x, 31 + y), cl
507 PSet (31 + x, 10 + y), cl: PSet (31 + x, 30 + y), cl
508 PSet (31 + x, 16 + y), cl: PSet (31 + x, 24 + y), cl
509 PSet (35 + x, 18 + y), cl: PSet (35 + x, 22 + y), cl
510 PSet (35 + x, 5 + y), cl: PSet (35 + x, 35 + y), cl
514 Line (4 + x, 4 + y)-(8 + x, 17 + y), cl, BF
515 Line (32 + x, 4 + y)-(36 + x, 36 + y), cl, BF
516 Line (4 + x, 18 + y)-(34 + x, 22 + y), cl, BF
520 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
521 Line (4 + x, 18 + y)-(36 + x, 22 + y), cl, BF
522 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
523 Line (4 + x, 9 + y)-(8 + x, 17 + y), cl, BF
524 Line (32 + x, 23 + y)-(36 + x, 31 + y), cl, BF
528 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
529 Line (4 + x, 18 + y)-(36 + x, 22 + y), cl, BF
530 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
531 Line (4 + x, 9 + y)-(8 + x, 31 + y), cl, BF
532 Line (32 + x, 23 + y)-(36 + x, 31 + y), cl, BF
536 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
537 Line (8 + x, 36 + y)-(35 + x, 9 + y), cl
538 Line (7 + x, 36 + y)-(34 + x, 9 + y), cl
539 Line (6 + x, 36 + y)-(33 + x, 9 + y), cl
540 Line (5 + x, 36 + y)-(32 + x, 9 + y), cl
544 Line (8 + x, 23 + y)-(4 + x, 34 + y), cl, BF
545 Line (4 + x, 6 + y)-(8 + x, 17 + y), cl, BF
546 Line (6 + x, 4 + y)-(34 + x, 8 + y), cl, BF
547 Line (6 + x, 36 + y)-(34 + x, 32 + y), cl, BF
548 Line (36 + x, 23 + y)-(32 + x, 34 + y), cl, BF
549 Line (32 + x, 6 + y)-(36 + x, 17 + y), cl, BF
550 Line (6 + x, 18 + y)-(34 + x, 22 + y), cl, BF
551 Line (30 + x, 17 + y)-(31 + x, 17 + y), cl
552 Line (30 + x, 23 + y)-(31 + x, 23 + y), cl
553 Line (10 + x, 17 + y)-(9 + x, 17 + y), cl
554 Line (10 + x, 23 + y)-(9 + x, 23 + y), cl
555 Line (9 + x, 31 + y)-(10 + x, 31 + y), cl
556 Line (30 + x, 31 + y)-(31 + x, 31 + y), cl
557 Line (9 + x, 9 + y)-(10 + x, 9 + y), cl
558 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
559 PSet (35 + x, 5 + y), cl: PSet (35 + x, 35 + y), cl
560 PSet (5 + x, 5 + y), cl: PSet (5 + x, 35 + y), cl
561 PSet (9 + x, 30 + y), cl: PSet (31 + x, 30 + y), cl
562 PSet (9 + x, 10 + y), cl: PSet (31 + x, 10 + y), cl
563 PSet (5 + x, 18 + y), cl: PSet (5 + x, 22 + y), cl
564 PSet (9 + x, 16 + y), cl: PSet (9 + x, 24 + y), cl
565 PSet (31 + x, 16 + y), cl: PSet (31 + x, 24 + y), cl
566 PSet (35 + x, 18 + y), cl: PSet (35 + x, 22 + y), cl
570 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
571 Line (4 + x, 18 + y)-(36 + x, 22 + y), cl, BF
572 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
573 Line (32 + x, 9 + y)-(36 + x, 31 + y), cl, BF
577 Line (6 + x, 4 + y)-(34 + x, 8 + y), cl, BF
578 Line (6 + x, 36 + y)-(34 + x, 32 + y), cl, BF
579 Line (4 + x, 6 + y)-(8 + x, 34 + y), cl, BF
580 Line (36 + x, 6 + y)-(32 + x, 34 + y), cl, BF
581 Line (9 + x, 9 + y)-(10 + x, 9 + y), cl
582 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
583 Line (9 + x, 31 + y)-(10 + x, 31 + y), cl
584 Line (30 + x, 31 + y)-(31 + x, 31 + y), cl
585 Line (9 + x, 9 + y)-(10 + x, 9 + y), cl
586 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
587 PSet (35 + x, 5 + y), cl: PSet (35 + x, 35 + y), cl
588 PSet (5 + x, 5 + y), cl: PSet (5 + x, 35 + y), cl
589 PSet (9 + x, 30 + y), cl: PSet (31 + x, 30 + y), cl
590 PSet (9 + x, 10 + y), cl: PSet (31 + x, 10 + y), cl
594 Line (4 + x, 6 + y)-(8 + x, 36 + y), cl, BF
595 Line (32 + x, 6 + y)-(36 + x, 36 + y), cl, BF
596 Line (4 + x, 18 + y)-(34 + x, 22 + y), cl, BF
597 Line (6 + x, 4 + y)-(34 + x, 8 + y), cl, BF
598 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
599 Line (9 + x, 9 + y)-(10 + x, 9 + y), cl
600 PSet (9 + x, 10 + y), cl: PSet (31 + x, 10 + y), cl
601 PSet (5 + x, 5 + y), cl: PSet (35 + x, 5 + y), cl
605 Line (4 + x, 9 + y)-(8 + x, 31 + y), cl, BF
606 Line (4 + x, 4 + y)-(34 + x, 8 + y), cl, BF
607 Line (4 + x, 36 + y)-(34 + x, 32 + y), cl, BF
608 Line (36 + x, 23 + y)-(32 + x, 34 + y), cl, BF
609 Line (32 + x, 6 + y)-(36 + x, 17 + y), cl, BF
610 Line (9 + x, 18 + y)-(34 + x, 22 + y), cl, BF
611 Line (30 + x, 17 + y)-(31 + x, 17 + y), cl
612 Line (30 + x, 23 + y)-(31 + x, 23 + y), cl
613 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
614 Line (30 + x, 31 + y)-(31 + x, 31 + y), cl
615 PSet (31 + x, 10 + y), cl: PSet (31 + x, 30 + y), cl
616 PSet (31 + x, 16 + y), cl: PSet (31 + x, 24 + y), cl
617 PSet (35 + x, 18 + y), cl: PSet (35 + x, 22 + y), cl
618 PSet (35 + x, 5 + y), cl: PSet (35 + x, 35 + y), cl
622 Line (6 + x, 4 + y)-(36 + x, 8 + y), cl, BF
623 Line (6 + x, 36 + y)-(36 + x, 32 + y), cl, BF
624 Line (4 + x, 6 + y)-(8 + x, 34 + y), cl, BF
625 Line (9 + x, 9 + y)-(10 + x, 9 + y), cl
626 Line (9 + x, 31 + y)-(10 + x, 31 + y), cl
627 PSet (9 + x, 10 + y), cl: PSet (9 + x, 30 + y), cl
628 PSet (5 + x, 5 + y), cl: PSet (5 + x, 35 + y), cl
632 Line (4 + x, 4 + y)-(34 + x, 8 + y), cl, BF
633 Line (4 + x, 36 + y)-(34 + x, 32 + y), cl, BF
634 Line (4 + x, 4 + y)-(8 + x, 36 + y), cl, BF
635 Line (32 + x, 6 + y)-(36 + x, 34 + y), cl, BF
636 Line (30 + x, 9 + y)-(31 + x, 9 + y), cl
637 Line (30 + x, 31 + y)-(31 + x, 31 + y), cl
638 PSet (31 + x, 10 + y), cl: PSet (31 + x, 30 + y), cl
639 PSet (35 + x, 5 + y), cl: PSet (35 + x, 35 + y), cl
643 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
644 Line (4 + x, 18 + y)-(36 + x, 22 + y), cl, BF
645 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
646 Line (4 + x, 4 + y)-(8 + x, 36 + y), cl, BF
650 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
651 Line (4 + x, 18 + y)-(36 + x, 22 + y), cl, BF
652 Line (4 + x, 4 + y)-(8 + x, 36 + y), cl, BF
656 Line (4 + x, 4 + y)-(36 + x, 8 + y), cl, BF
657 Line (20 + x, 18 + y)-(36 + x, 22 + y), cl, BF
658 Line (4 + x, 36 + y)-(36 + x, 32 + y), cl, BF
659 Line (4 + x, 9 + y)-(8 + x, 31 + y), cl, BF
660 Line (32 + x, 23 + y)-(36 + x, 31 + y), cl, BF
664 Line (4 + x, 4 + y)-(8 + x, 36 + y), cl, BF
665 Line (32 + x, 4 + y)-(36 + x, 36 + y), cl, BF
666 Line (4 + x, 18 + y)-(34 + x, 22 + y), cl, BF
670 Line (8 + x, 36 + y)-(32 + x, 32 + y), cl, BF
671 Line (18 + x, 31 + y)-(22 + x, 9 + y), cl, BF
672 Line (8 + x, 8 + y)-(32 + x, 3 + y), cl, BF
676 Line (6 + x, 36 + y)-(34 + x, 32 + y), cl, BF
677 Line (32 + x, 4 + y)-(36 + x, 34 + y), cl, BF
678 Line (4 + x, 18 + y)-(8 + x, 34 + y), cl, BF
679 Line (9 + x, 31 + y)-(10 + x, 31 + y), cl
680 Line (30 + x, 31 + y)-(31 + x, 31 + y), cl
681 PSet (9 + x, 30 + y), cl: PSet (31 + x, 30 + y), cl
682 PSet (5 + x, 35 + y), cl: PSet (35 + x, 35 + y), cl
686 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
687 Line (12 + x, 31 + y)-(28 + x, 31 + y), cf
688 Line (13 + x, 30 + y)-(27 + x, 30 + y), cf
689 Line (14 + x, 29 + y)-(26 + x, 29 + y), cf
690 Line (15 + x, 28 + y)-(25 + x, 28 + y), cf
691 Line (16 + x, 27 + y)-(24 + x, 10 + y), cf, BF
692 Line (15 + x, 24 + y)-(25 + x, 24 + y), cf
693 Line (14 + x, 23 + y)-(26 + x, 23 + y), cf
694 Line (13 + x, 22 + y)-(27 + x, 22 + y), cf
695 Line (12 + x, 21 + y)-(28 + x, 21 + y), cf
696 Line (11 + x, 20 + y)-(29 + x, 20 + y), cf
697 Line (10 + x, 19 + y)-(30 + x, 19 + y), cf
698 Line (9 + x, 18 + y)-(31 + x, 18 + y), cf
699 Line (8 + x, 17 + y)-(32 + x, 17 + y), cf
700 Line (7 + x, 16 + y)-(33 + x, 16 + y), cf
701 Line (6 + x, 15 + y)-(34 + x, 15 + y), cf
702 Line (5 + x, 14 + y)-(35 + x, 14 + y), cf
703 Line (4 + x, 13 + y)-(36 + x, 12 + y), cf, BF
704 Line (4 + x, 11 + y)-(14 + x, 10 + y), cf, BF
705 Line (5 + x, 9 + y)-(13 + x, 9 + y), cf
706 Line (6 + x, 8 + y)-(12 + x, 8 + y), cf
707 Line (7 + x, 7 + y)-(11 + x, 7 + y), cf
708 Line (26 + x, 11 + y)-(36 + x, 10 + y), cf, BF
709 Line (27 + x, 9 + y)-(35 + x, 9 + y), cf
710 Line (28 + x, 8 + y)-(34 + x, 8 + y), cf
711 Line (29 + x, 7 + y)-(33 + x, 7 + y), cf
712 Line (17 + x, 9 + y)-(23 + x, 8 + y), cf, BF
713 Line (18 + x, 7 + y)-(22 + x, 6 + y), cf, BF
714 Line (19 + x, 5 + y)-(21 + x, 4 + y), cf, BF
718 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
719 Line (9 + x, 31 + y)-(31 + x, 31 + y), cf
720 Line (10 + x, 30 + y)-(30 + x, 30 + y), cf
721 Line (11 + x, 29 + y)-(29 + x, 29 + y), cf
722 Line (12 + x, 28 + y)-(28 + x, 14 + y), cf, BF
723 Line (11 + x, 24 + y)-(29 + x, 24 + y), cf
724 Line (10 + x, 23 + y)-(30 + x, 23 + y), cf
725 Line (9 + x, 22 + y)-(31 + x, 22 + y), cf
726 Line (8 + x, 21 + y)-(32 + x, 21 + y), cf
727 Line (7 + x, 20 + y)-(33 + x, 20 + y), cf
728 Line (6 + x, 19 + y)-(34 + x, 18 + y), cf, BF
729 Line (6 + x, 17 + y)-(7 + x, 10 + y), cf, BF
730 Line (5 + x, 11 + y)-(8 + x, 14 + y), cf, BF
731 Line (4 + x, 12 + y)-(9 + x, 13 + y), cf, BF
732 Line (34 + x, 17 + y)-(33 + x, 10 + y), cf, BF
733 Line (35 + x, 11 + y)-(32 + x, 14 + y), cf, BF
734 Line (36 + x, 12 + y)-(31 + x, 13 + y), cf, BF
735 Line (12 + x, 13 + y)-(13 + x, 6 + y), cf, BF
736 Line (11 + x, 7 + y)-(14 + x, 10 + y), cf, BF
737 Line (10 + x, 8 + y)-(15 + x, 9 + y), cf, BF
738 Line (27 + x, 13 + y)-(28 + x, 6 + y), cf, BF
739 Line (26 + x, 7 + y)-(29 + x, 10 + y), cf, BF
740 Line (25 + x, 8 + y)-(30 + x, 9 + y), cf, BF
741 Line (19 + x, 13 + y)-(21 + x, 4 + y), cf, BF
742 Line (18 + x, 5 + y)-(22 + x, 8 + y), cf, BF
743 Line (17 + x, 6 + y)-(23 + x, 7 + y), cf, BF
747 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
748 Line (18 + x, 31 + y)-(22 + x, 6 + y), cf, BF
749 Line (19 + x, 5 + y)-(21 + x, 4 + y), cf, BF
750 Line (12 + x, 31 + y)-(28 + x, 31 + y), cf
751 Line (13 + x, 30 + y)-(27 + x, 30 + y), cf
752 Line (14 + x, 29 + y)-(26 + x, 29 + y), cf
753 Line (15 + x, 28 + y)-(25 + x, 28 + y), cf
754 Line (16 + x, 27 + y)-(24 + x, 27 + y), cf
755 Line (17 + x, 26 + y)-(23 + x, 26 + y), cf
756 Line (17 + x, 21 + y)-(23 + x, 8 + y), cf, BF
757 Line (16 + x, 19 + y)-(24 + x, 10 + y), cf, BF
758 Line (15 + x, 17 + y)-(25 + x, 12 + y), cf, BF
759 Line (14 + x, 15 + y)-(26 + x, 14 + y), cf, BF
763 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
764 Line (12 + x, 31 + y)-(28 + x, 31 + y), cf
765 Line (13 + x, 30 + y)-(29 + x, 30 + y), cf
766 Line (14 + x, 29 + y)-(30 + x, 29 + y), cf
767 Line (15 + x, 28 + y)-(31 + x, 28 + y), cf
768 Line (16 + x, 27 + y)-(32 + x, 27 + y), cf
769 Line (17 + x, 26 + y)-(33 + x, 26 + y), cf
770 Line (18 + x, 25 + y)-(34 + x, 25 + y), cf
771 Line (19 + x, 24 + y)-(35 + x, 24 + y), cf
772 Line (20 + x, 23 + y)-(36 + x, 18 + y), cf, BF
773 Line (4 + x, 17 + y)-(35 + x, 17 + y), cf
774 Line (4 + x, 16 + y)-(34 + x, 16 + y), cf
775 Line (5 + x, 15 + y)-(33 + x, 15 + y), cf
776 Line (6 + x, 14 + y)-(32 + x, 14 + y), cf
777 Line (7 + x, 13 + y)-(31 + x, 13 + y), cf
778 Line (8 + x, 12 + y)-(30 + x, 12 + y), cf
779 Line (9 + x, 11 + y)-(29 + x, 11 + y), cf
780 Line (10 + x, 10 + y)-(28 + x, 10 + y), cf
781 Line (11 + x, 9 + y)-(27 + x, 9 + y), cf
782 Line (12 + x, 8 + y)-(26 + x, 8 + y), cf
783 Line (13 + x, 7 + y)-(25 + x, 7 + y), cf
784 Line (14 + x, 6 + y)-(24 + x, 6 + y), cf
785 Line (15 + x, 5 + y)-(23 + x, 5 + y), cf
786 Line (16 + x, 4 + y)-(22 + x, 4 + y), cf
790 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
791 Line (4 + x, 4 + y)-(8 + x, 12 + y), cf, BF
792 Line (13 + x, 4 + y)-(17 + x, 12 + y), cf, BF
793 Line (23 + x, 4 + y)-(27 + x, 12 + y), cf, BF
794 Line (32 + x, 4 + y)-(36 + x, 12 + y), cf, BF
795 Line (4 + x, 12 + y)-(36 + x, 16 + y), cf, BF
796 Line (12 + x, 16 + y)-(28 + x, 32 + y), cf, BF
797 Line (9 + x, 16 + y)-(11 + x, 16 + y), cf
798 Line (29 + x, 16 + y)-(31 + x, 16 + y), cf
799 Line (10 + x, 17 + y)-(11 + x, 17 + y), cf
800 Line (29 + x, 17 + y)-(30 + x, 17 + y), cf
801 PSet (11 + x, 18 + y), cf: PSet (29 + x, 18 + y), cf
802 Line (9 + x, 31 + y)-(11 + x, 31 + y), cf
803 Line (29 + x, 31 + y)-(31 + x, 31 + y), cf
804 Line (10 + x, 30 + y)-(11 + x, 30 + y), cf
805 Line (29 + x, 30 + y)-(30 + x, 30 + y), cf
806 PSet (11 + x, 29 + y), cf: PSet (29 + x, 29 + y), cf
810 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
811 Line (18 + x, 32 + y)-(22 + x, 4 + y), cf, BF
812 Line (12 + x, 9 + y)-(28 + x, 14 + y), cf, BF
813 Line (9 + x, 31 + y)-(31 + x, 31 + y), cf
814 Line (10 + x, 30 + y)-(30 + x, 30 + y), cf
815 Line (11 + x, 29 + y)-(29 + x, 29 + y), cf
816 Line (12 + x, 28 + y)-(28 + x, 28 + y), cf
817 Line (13 + x, 27 + y)-(27 + x, 27 + y), cf
818 Line (14 + x, 26 + y)-(26 + x, 26 + y), cf
819 Line (15 + x, 25 + y)-(25 + x, 25 + y), cf
820 Line (16 + x, 24 + y)-(24 + x, 24 + y), cf
821 Line (17 + x, 23 + y)-(23 + x, 23 + y), cf
822 Line (17 + x, 19 + y)-(23 + x, 19 + y), cf
823 Line (16 + x, 18 + y)-(24 + x, 18 + y), cf
824 Line (15 + x, 17 + y)-(25 + x, 17 + y), cf
825 Line (14 + x, 16 + y)-(26 + x, 16 + y), cf
826 Line (13 + x, 15 + y)-(27 + x, 15 + y), cf
827 Line (13 + x, 8 + y)-(27 + x, 8 + y), cf
828 Line (14 + x, 7 + y)-(26 + x, 7 + y), cf
829 Line (15 + x, 6 + y)-(25 + x, 6 + y), cf
830 Line (16 + x, 5 + y)-(24 + x, 5 + y), cf
831 Line (17 + x, 4 + y)-(23 + x, 4 + y), cf
835 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
836 Line (9 + x, 31 + y)-(31 + x, 31 + y), cf
837 Line (10 + x, 30 + y)-(30 + x, 30 + y), cf
838 Line (11 + x, 29 + y)-(29 + x, 29 + y), cf
839 Line (12 + x, 28 + y)-(28 + x, 28 + y), cf
840 Line (13 + x, 27 + y)-(27 + x, 27 + y), cf
841 Line (14 + x, 26 + y)-(26 + x, 26 + y), cf
842 Line (15 + x, 25 + y)-(25 + x, 25 + y), cf
843 Line (16 + x, 24 + y)-(24 + x, 4 + y), cf, BF
844 Line (6 + x, 9 + y)-(36 + x, 12 + y), cf, BF
845 Line (4 + x, 10 + y)-(6 + x, 11 + y), cf, BF
846 Line (14 + x, 16 + y)-(25 + x, 16 + y), cf
847 Line (12 + x, 15 + y)-(26 + x, 15 + y), cf
848 Line (10 + x, 14 + y)-(27 + x, 14 + y), cf
849 Line (8 + x, 13 + y)-(28 + x, 13 + y), cf
850 Line (8 + x, 8 + y)-(28 + x, 8 + y), cf
851 Line (10 + x, 7 + y)-(27 + x, 7 + y), cf
852 Line (12 + x, 6 + y)-(26 + x, 6 + y), cf
853 Line (14 + x, 5 + y)-(25 + x, 5 + y), cf
854 Line (16 + x, 4 + y)-(24 + x, 4 + y), cf
858 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
859 Line (9 + x, 31 + y)-(31 + x, 31 + y), cf
860 Line (10 + x, 30 + y)-(30 + x, 30 + y), cf
861 Line (11 + x, 29 + y)-(29 + x, 29 + y), cf
862 Line (12 + x, 28 + y)-(28 + x, 28 + y), cf
863 Line (13 + x, 27 + y)-(27 + x, 27 + y), cf
864 Line (14 + x, 26 + y)-(26 + x, 26 + y), cf
865 Line (13 + x, 25 + y)-(27 + x, 22 + y), cf, BF
866 Line (16 + x, 21 + y)-(24 + x, 20 + y), cf, BF
867 Line (18 + x, 19 + y)-(22 + x, 12 + y), cf, BF
868 Line (19 + x, 11 + y)-(21 + x, 4 + y), cf, BF
869 Line (18 + x, 10 + y)-(22 + x, 5 + y), cf, BF
870 Line (17 + x, 9 + y)-(23 + x, 6 + y), cf, BF
871 Line (16 + x, 8 + y)-(24 + x, 7 + y), cf, BF
872 Line (15 + x, 20 + y)-(16 + x, 19 + y), cf, BF
873 Line (14 + x, 19 + y)-(15 + x, 18 + y), cf, BF
874 Line (13 + x, 18 + y)-(14 + x, 17 + y), cf, BF
875 Line (24 + x, 20 + y)-(25 + x, 19 + y), cf, BF
876 Line (25 + x, 19 + y)-(26 + x, 18 + y), cf, BF
877 Line (26 + x, 18 + y)-(27 + x, 17 + y), cf, BF
878 Line (11 + x, 18 + y)-(12 + x, 11 + y), cf, BF
879 Line (10 + x, 17 + y)-(13 + x, 12 + y), cf, BF
880 Line (9 + x, 16 + y)-(14 + x, 13 + y), cf, BF
881 Line (8 + x, 15 + y)-(15 + x, 14 + y), cf, BF
882 Line (28 + x, 18 + y)-(29 + x, 11 + y), cf, BF
883 Line (27 + x, 17 + y)-(30 + x, 12 + y), cf, BF
884 Line (26 + x, 16 + y)-(31 + x, 13 + y), cf, BF
885 Line (25 + x, 15 + y)-(32 + x, 14 + y), cf, BF
886 Line (4 + x, 24 + y)-(36 + x, 23 + y), cf, BF
887 Line (29 + x, 25 + y)-(35 + x, 22 + y), cf, BF
888 Line (30 + x, 26 + y)-(34 + x, 21 + y), cf, BF
889 Line (31 + x, 27 + y)-(33 + x, 20 + y), cf, BF
890 Line (5 + x, 25 + y)-(11 + x, 22 + y), cf, BF
891 Line (6 + x, 26 + y)-(10 + x, 21 + y), cf, BF
892 Line (7 + x, 27 + y)-(9 + x, 20 + y), cf, BF
896 Line (10 + x, 10 + y)-(30 + x, 30 + y), cf, BF
897 Line (4 + x, 4 + y)-(5 + x, 5 + y), cf, BF
898 Line (5 + x, 5 + y)-(7 + x, 7 + y), cf, BF
899 Line (6 + x, 6 + y)-(9 + x, 9 + y), cf, BF
900 Line (7 + x, 7 + y)-(11 + x, 11 + y), cf, BF
901 Line (8 + x, 8 + y)-(12 + x, 12 + y), cf, BF
902 Line (36 + x, 4 + y)-(35 + x, 5 + y), cf, BF
903 Line (35 + x, 5 + y)-(33 + x, 7 + y), cf, BF
904 Line (34 + x, 6 + y)-(31 + x, 9 + y), cf, BF
905 Line (33 + x, 7 + y)-(29 + x, 11 + y), cf, BF
906 Line (32 + x, 8 + y)-(28 + x, 12 + y), cf, BF
907 Line (36 + x, 36 + y)-(35 + x, 35 + y), cf, BF
908 Line (35 + x, 35 + y)-(33 + x, 33 + y), cf, BF
909 Line (34 + x, 34 + y)-(31 + x, 31 + y), cf, BF
910 Line (33 + x, 33 + y)-(29 + x, 29 + y), cf, BF
911 Line (32 + x, 32 + y)-(28 + x, 28 + y), cf, BF
912 Line (4 + x, 36 + y)-(5 + x, 35 + y), cf, BF
913 Line (5 + x, 35 + y)-(7 + x, 33 + y), cf, BF
914 Line (6 + x, 34 + y)-(9 + x, 31 + y), cf, BF
915 Line (7 + x, 33 + y)-(11 + x, 29 + y), cf, BF
916 Line (8 + x, 32 + y)-(12 + x, 28 + y), cf, BF
917 Line (17 + x, 9 + y)-(23 + x, 8 + y), cf, BF
918 Line (18 + x, 7 + y)-(22 + x, 6 + y), cf, BF
919 Line (19 + x, 5 + y)-(21 + x, 4 + y), cf, BF
920 Line (17 + x, 31 + y)-(23 + x, 32 + y), cf, BF
921 Line (18 + x, 33 + y)-(22 + x, 34 + y), cf, BF
922 Line (19 + x, 35 + y)-(21 + x, 36 + y), cf, BF
923 Line (8 + x, 17 + y)-(9 + x, 23 + y), cf, BF
924 Line (6 + x, 18 + y)-(7 + x, 22 + y), cf, BF
925 Line (4 + x, 19 + y)-(5 + x, 21 + y), cf, BF
926 Line (32 + x, 17 + y)-(31 + x, 23 + y), cf, BF
927 Line (34 + x, 18 + y)-(33 + x, 22 + y), cf, BF
928 Line (36 + x, 19 + y)-(35 + x, 21 + y), cf, BF
932 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
933 Line (9 + x, 31 + y)-(31 + x, 31 + y), cf
934 Line (10 + x, 30 + y)-(30 + x, 30 + y), cf
935 Line (11 + x, 29 + y)-(29 + x, 29 + y), cf
936 Line (12 + x, 28 + y)-(28 + x, 28 + y), cf
937 Line (13 + x, 27 + y)-(27 + x, 27 + y), cf
938 Line (14 + x, 26 + y)-(26 + x, 24 + y), cf, BF
939 Line (15 + x, 23 + y)-(25 + x, 20 + y), cf, BF
940 Line (16 + x, 19 + y)-(24 + x, 16 + y), cf, BF
941 Line (17 + x, 15 + y)-(23 + x, 12 + y), cf, BF
942 Line (18 + x, 11 + y)-(22 + x, 8 + y), cf, BF
943 Line (19 + x, 7 + y)-(21 + x, 4 + y), cf, BF
947 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
948 Line (9 + x, 31 + y)-(31 + x, 31 + y), cf
949 Line (10 + x, 30 + y)-(30 + x, 30 + y), cf
950 Line (11 + x, 29 + y)-(29 + x, 29 + y), cf
951 Line (12 + x, 28 + y)-(28 + x, 28 + y), cf
952 Line (13 + x, 27 + y)-(27 + x, 27 + y), cf
953 Line (14 + x, 26 + y)-(26 + x, 26 + y), cf
954 Line (15 + x, 25 + y)-(25 + x, 25 + y), cf
955 Line (15 + x, 20 + y)-(25 + x, 20 + y), cf
956 Line (14 + x, 19 + y)-(26 + x, 19 + y), cf
957 Line (13 + x, 18 + y)-(27 + x, 18 + y), cf
958 Line (16 + x, 24 + y)-(24 + x, 8 + y), cf, BF
959 Line (17 + x, 7 + y)-(23 + x, 6 + y), cf, BF
960 Line (18 + x, 5 + y)-(22 + x, 5 + y), cf
961 Line (19 + x, 4 + y)-(21 + x, 4 + y), cf
962 Line (9 + x, 12 + y)-(31 + x, 17 + y), cf, BF
963 Line (10 + x, 11 + y)-(13 + x, 11 + y), cf
964 Line (11 + x, 10 + y)-(12 + x, 10 + y), cf
965 Line (27 + x, 11 + y)-(30 + x, 11 + y), cf
966 Line (28 + x, 10 + y)-(29 + x, 10 + y), cf
967 Line (10 + x, 11 + y)-(10 + x, 18 + y), cf
968 Line (9 + x, 12 + y)-(9 + x, 19 + y), cf
969 Line (8 + x, 13 + y)-(8 + x, 20 + y), cf
970 Line (7 + x, 14 + y)-(7 + x, 21 + y), cf
971 Line (6 + x, 15 + y)-(6 + x, 22 + y), cf
972 Line (5 + x, 16 + y)-(5 + x, 23 + y), cf
973 Line (4 + x, 17 + y)-(4 + x, 24 + y), cf
974 Line (30 + x, 11 + y)-(30 + x, 18 + y), cf
975 Line (31 + x, 12 + y)-(31 + x, 19 + y), cf
976 Line (32 + x, 13 + y)-(32 + x, 20 + y), cf
977 Line (33 + x, 14 + y)-(33 + x, 21 + y), cf
978 Line (34 + x, 15 + y)-(34 + x, 22 + y), cf
979 Line (35 + x, 16 + y)-(35 + x, 23 + y), cf
980 Line (36 + x, 17 + y)-(36 + x, 24 + y), cf
984 Line (8 + x, 36 + y)-(32 + x, 32 + y), cf, BF
985 Line (10 + x, 31 + y)-(11 + x, 26 + y), cf, BF
986 Line (16 + x, 31 + y)-(17 + x, 26 + y), cf, BF
987 Line (23 + x, 31 + y)-(24 + x, 26 + y), cf, BF
988 Line (29 + x, 31 + y)-(30 + x, 26 + y), cf, BF
989 Line (8 + x, 25 + y)-(32 + x, 14 + y), cf, BF
990 Line (7 + x, 24 + y)-(7 + x, 15 + y), cf
991 Line (6 + x, 23 + y)-(6 + x, 16 + y), cf
992 Line (5 + x, 22 + y)-(5 + x, 17 + y), cf
993 Line (4 + x, 21 + y)-(4 + x, 18 + y), cf
994 Line (33 + x, 24 + y)-(33 + x, 15 + y), cf
995 Line (34 + x, 23 + y)-(34 + x, 16 + y), cf
996 Line (35 + x, 22 + y)-(35 + x, 17 + y), cf
997 Line (36 + x, 21 + y)-(36 + x, 18 + y), cf
998 Line (14 + x, 13 + y)-(26 + x, 10 + y), cf, BF
999 Line (10 + x, 9 + y)-(30 + x, 7 + y), cf, BF
1000 Line (10 + x, 6 + y)-(13 + x, 6 + y), cf
1001 Line (10 + x, 5 + y)-(12 + x, 5 + y), cf
1002 Line (10 + x, 4 + y)-(11 + x, 4 + y), cf
1003 Line (30 + x, 6 + y)-(27 + x, 6 + y), cf
1004 Line (30 + x, 5 + y)-(28 + x, 5 + y), cf
1005 Line (30 + x, 4 + y)-(29 + x, 4 + y), cf
1006 Line (16 + x, 6 + y)-(24 + x, 6 + y), cf
1007 Line (17 + x, 5 + y)-(23 + x, 5 + y), cf
1008 Line (18 + x, 4 + y)-(22 + x, 4 + y), cf
1012 Line (14 + x, 36 + y)-(26 + x, 28 + y), cf, BF
1013 Line (14 + x, 4 + y)-(26 + x, 12 + y), cf, BF
1014 Line (4 + x, 14 + y)-(12 + x, 26 + y), cf, BF
1015 Line (28 + x, 14 + y)-(36 + x, 26 + y), cf, BF
1016 Line (17 + x, 36 + y)-(17 + x, 27 + y), cf
1017 Line (16 + x, 36 + y)-(16 + x, 26 + y), cf
1018 Line (15 + x, 36 + y)-(15 + x, 25 + y), cf
1019 Line (14 + x, 36 + y)-(14 + x, 24 + y), cf
1020 Line (13 + x, 35 + y)-(13 + x, 23 + y), cf
1021 Line (12 + x, 34 + y)-(12 + x, 22 + y), cf
1022 Line (23 + x, 36 + y)-(23 + x, 27 + y), cf
1023 Line (24 + x, 36 + y)-(24 + x, 26 + y), cf
1024 Line (25 + x, 36 + y)-(25 + x, 25 + y), cf
1025 Line (26 + x, 36 + y)-(26 + x, 24 + y), cf
1026 Line (27 + x, 35 + y)-(27 + x, 23 + y), cf
1027 Line (28 + x, 34 + y)-(28 + x, 22 + y), cf
1028 Line (17 + x, 4 + y)-(17 + x, 13 + y), cf
1029 Line (16 + x, 4 + y)-(16 + x, 14 + y), cf
1030 Line (15 + x, 4 + y)-(15 + x, 15 + y), cf
1031 Line (14 + x, 4 + y)-(14 + x, 16 + y), cf
1032 Line (13 + x, 5 + y)-(13 + x, 17 + y), cf
1033 Line (12 + x, 6 + y)-(12 + x, 18 + y), cf
1034 Line (23 + x, 4 + y)-(23 + x, 13 + y), cf
1035 Line (24 + x, 4 + y)-(24 + x, 14 + y), cf
1036 Line (25 + x, 4 + y)-(25 + x, 15 + y), cf
1037 Line (26 + x, 4 + y)-(26 + x, 16 + y), cf
1038 Line (27 + x, 5 + y)-(27 + x, 17 + y), cf
1039 Line (28 + x, 6 + y)-(28 + x, 18 + y), cf
1040 Line (5 + x, 13 + y)-(5 + x, 27 + y), cf
1041 Line (6 + x, 12 + y)-(6 + x, 28 + y), cf
1042 Line (7 + x, 11 + y)-(7 + x, 29 + y), cf
1043 Line (8 + x, 10 + y)-(8 + x, 30 + y), cf
1044 Line (9 + x, 9 + y)-(9 + x, 31 + y), cf
1045 Line (10 + x, 8 + y)-(10 + x, 32 + y), cf
1046 Line (11 + x, 7 + y)-(11 + x, 33 + y), cf
1047 Line (35 + x, 13 + y)-(35 + x, 27 + y), cf
1048 Line (34 + x, 12 + y)-(34 + x, 28 + y), cf
1049 Line (33 + x, 11 + y)-(33 + x, 29 + y), cf
1050 Line (32 + x, 10 + y)-(32 + x, 30 + y), cf
1051 Line (31 + x, 9 + y)-(31 + x, 31 + y), cf
1052 Line (30 + x, 8 + y)-(30 + x, 32 + y), cf
1053 Line (29 + x, 7 + y)-(29 + x, 33 + y), cf
1057 Line (14 + x, 36 + y)-(26 + x, 32 + y), cf, BF
1058 Line (14 + x, 4 + y)-(26 + x, 8 + y), cf, BF
1059 Line (4 + x, 14 + y)-(8 + x, 26 + y), cf, BF
1060 Line (32 + x, 14 + y)-(36 + x, 26 + y), cf, BF
1061 Line (13 + x, 35 + y)-(13 + x, 31 + y), cf
1062 Line (12 + x, 34 + y)-(12 + x, 30 + y), cf
1063 Line (11 + x, 33 + y)-(11 + x, 29 + y), cf
1064 Line (10 + x, 32 + y)-(10 + x, 28 + y), cf
1065 Line (9 + x, 31 + y)-(9 + x, 27 + y), cf
1066 Line (8 + x, 30 + y)-(8 + x, 26 + y), cf
1067 Line (27 + x, 35 + y)-(27 + x, 31 + y), cf
1068 Line (28 + x, 34 + y)-(28 + x, 30 + y), cf
1069 Line (29 + x, 33 + y)-(29 + x, 29 + y), cf
1070 Line (30 + x, 32 + y)-(30 + x, 28 + y), cf
1071 Line (31 + x, 31 + y)-(31 + x, 27 + y), cf
1072 Line (32 + x, 30 + y)-(32 + x, 26 + y), cf
1073 Line (13 + x, 5 + y)-(13 + x, 9 + y), cf
1074 Line (12 + x, 6 + y)-(12 + x, 10 + y), cf
1075 Line (11 + x, 7 + y)-(11 + x, 11 + y), cf
1076 Line (10 + x, 8 + y)-(10 + x, 12 + y), cf
1077 Line (9 + x, 9 + y)-(9 + x, 13 + y), cf
1078 Line (8 + x, 10 + y)-(8 + x, 14 + y), cf
1079 Line (27 + x, 5 + y)-(27 + x, 9 + y), cf
1080 Line (28 + x, 6 + y)-(28 + x, 10 + y), cf
1081 Line (29 + x, 7 + y)-(29 + x, 11 + y), cf
1082 Line (30 + x, 8 + y)-(30 + x, 12 + y), cf
1083 Line (31 + x, 9 + y)-(31 + x, 13 + y), cf
1084 Line (32 + x, 10 + y)-(32 + x, 14 + y), cf
1085 Line (5 + x, 13 + y)-(5 + x, 27 + y), cf
1086 Line (6 + x, 12 + y)-(6 + x, 28 + y), cf
1087 Line (7 + x, 11 + y)-(7 + x, 29 + y), cf
1088 Line (35 + x, 13 + y)-(35 + x, 27 + y), cf
1089 Line (34 + x, 12 + y)-(34 + x, 28 + y), cf
1090 Line (33 + x, 11 + y)-(33 + x, 29 + y), cf
1091 Line (17 + x, 28 + y)-(23 + x, 24 + y), cf, BF
1092 Line (17 + x, 12 + y)-(23 + x, 16 + y), cf, BF
1093 Line (12 + x, 17 + y)-(16 + x, 23 + y), cf, BF
1094 Line (24 + x, 17 + y)-(28 + x, 23 + y), cf, BF
1095 Line (18 + x, 28 + y)-(18 + x, 23 + y), cf
1096 Line (17 + x, 28 + y)-(17 + x, 22 + y), cf
1097 Line (16 + x, 27 + y)-(16 + x, 21 + y), cf
1098 Line (22 + x, 28 + y)-(22 + x, 23 + y), cf
1099 Line (23 + x, 28 + y)-(23 + x, 22 + y), cf
1100 Line (24 + x, 27 + y)-(24 + x, 21 + y), cf
1101 Line (18 + x, 12 + y)-(18 + x, 17 + y), cf
1102 Line (17 + x, 12 + y)-(17 + x, 18 + y), cf
1103 Line (16 + x, 13 + y)-(16 + x, 19 + y), cf
1104 Line (22 + x, 12 + y)-(22 + x, 17 + y), cf
1105 Line (23 + x, 12 + y)-(23 + x, 18 + y), cf
1106 Line (24 + x, 13 + y)-(24 + x, 19 + y), cf
1107 Line (13 + x, 16 + y)-(13 + x, 24 + y), cf
1108 Line (14 + x, 15 + y)-(14 + x, 25 + y), cf
1109 Line (15 + x, 14 + y)-(15 + x, 26 + y), cf
1110 Line (27 + x, 16 + y)-(27 + x, 24 + y), cf
1111 Line (26 + x, 15 + y)-(26 + x, 25 + y), cf
1112 Line (25 + x, 14 + y)-(25 + x, 26 + y), cf
1116 Line (x, y)-(x + 40, y + 40), cd1, BF
1117 Line (x - 1, y - 1)-(x + 41, y + 41), cb1, B
1121 Line (20, 160)-(60, 200), cd1, BF
1122 Line (20, 220)-(60, 260), cd1, BF
1123 Line (20, 280)-(60, 320), cd1, BF
1124 Line (580, 160)-(620, 200), cd1, BF
1125 Line (580, 220)-(620, 260), cd1, BF
1126 Line (580, 280)-(620, 320), cd1, BF
1127 Line (19, 159)-(61, 201), cb1, B
1128 Line (19, 219)-(61, 261), cb1, B
1129 Line (19, 279)-(61, 321), cb1, B
1130 Line (579, 159)-(621, 201), cb1, B
1131 Line (579, 219)-(621, 261), cb1, B
1132 Line (579, 279)-(621, 321), cb1, B
1136 Line (160, 80)-(480, 400), cb2, BF
1137 For x = 160 To 480 Step 40
1138 Line (x, 80)-(x, 400), cb1
1140 For y = 80 To 400 Step 40
1141 Line (160, y)-(480, y), cb1
1143 For y = 320 To 80 Step -80: For x = 400 To 160 Step -80
1144 Line (x + 1, y + 1)-(x + 39, y + 39), cb3, BF
1145 Line (x + 41, y + 41)-(x + 79, y + 79), cb3, BF
1148 Let x = 175: Call numberA
1149 Let x = 215: Call numberB
1150 Let x = 255: Call numberC
1151 Let x = 295: Call numberD
1152 Let x = 335: Call numberE
1153 Let x = 375: Call numberF
1154 Let x = 415: Call numberG
1155 Let x = 455: Call numberH
1157 Let y = 95: Call number8
1158 Let y = 135: Call number7
1159 Let y = 175: Call number6
1160 Let y = 215: Call number5
1161 Let y = 255: Call number4
1162 Let y = 295: Call number3
1163 Let y = 335: Call number2
1164 Let y = 375: Call number1
1168 Line (160, 80)-(480, 400), cb2, BF
1169 For x = 160 To 480 Step 40
1170 Line (x, 80)-(x, 400), cb1
1172 For y = 80 To 400 Step 40
1173 Line (160, y)-(480, y), cb1
1176 Let x = 175: Call numberA
1177 Let x = 215: Call numberB
1178 Let x = 255: Call numberC
1179 Let x = 295: Call numberD
1180 Let x = 335: Call numberE
1181 Let x = 375: Call numberF
1182 Let x = 415: Call numberG
1183 Let x = 455: Call numberH
1185 Let y = 95: Call number8
1186 Let y = 135: Call number7
1187 Let y = 175: Call number6
1188 Let y = 215: Call number5
1189 Let y = 255: Call number4
1190 Let y = 295: Call number3
1191 Let y = 335: Call number2
1192 Let y = 375: Call number1
1196 Line (140, 40)-(500, 440), cb2, BF
1197 For x = 140 To 500 Step 40
1198 Line (x, 40)-(x, 440), cb1
1200 For y = 40 To 440 Step 40
1201 Line (140, y)-(500, y), cb1
1203 Line (259, 161)-(381, 159), cb4, BF
1204 Line (259, 41)-(261, 159), cb4, BF
1205 Line (379, 41)-(381, 159), cb4, BF
1206 Line (259, 321)-(381, 319), cb4, BF
1207 Line (259, 439)-(261, 319), cb4, BF
1208 Line (379, 439)-(381, 319), cb4, BF
1209 Line (141, 238)-(499, 242), cb5, BF
1211 Let x = 155: Call numberA
1212 Let x = 195: Call numberB
1213 Let x = 235: Call numberC
1214 Let x = 275: Call numberD
1215 Let x = 315: Call numberE
1216 Let x = 355: Call numberF
1217 Let x = 395: Call numberG
1218 Let x = 435: Call numberH
1219 Let x = 475: Call numberI
1221 Let y = 55: Call number0
1222 Let y = 95: Call number9
1223 Let y = 135: Call number8
1224 Let y = 175: Call number7
1225 Let y = 215: Call number6
1226 Let y = 255: Call number5
1227 Let y = 295: Call number4
1228 Let y = 335: Call number3
1229 Let y = 375: Call number2
1230 Let y = 415: Call number1
1234 Line (140, 60)-(500, 420), cb2, BF
1235 For x = 140 To 500 Step 40
1236 Line (x, 60)-(x, 420), cb1
1238 For y = 60 To 400 Step 40
1239 Line (140, y)-(500, y), cb1
1242 Let x = 155: Call numberA
1243 Let x = 195: Call numberB
1244 Let x = 235: Call numberC
1245 Let x = 275: Call numberD
1246 Let x = 315: Call numberE
1247 Let x = 355: Call numberF
1248 Let x = 395: Call numberG
1249 Let x = 435: Call numberH
1250 Let x = 475: Call numberI
1252 Let y = 75: Call number9
1253 Let y = 115: Call number8
1254 Let y = 155: Call number7
1255 Let y = 195: Call number6
1256 Let y = 235: Call number5
1257 Let y = 275: Call number4
1258 Let y = 315: Call number3
1259 Let y = 355: Call number2
1260 Let y = 395: Call number1
1264 Line (120, 40)-(520, 440), cb2, BF
1265 For x = 120 To 520 Step 40
1266 Line (x, 40)-(x, 440), cb1
1268 For y = 40 To 440 Step 40
1269 Line (120, y)-(520, y), cb1
1271 For y = 360 To 40 Step -80: For x = 440 To 120 Step -80
1272 Line (x + 1, y + 1)-(x + 39, y + 39), cb3, BF
1273 Line (x + 41, y + 41)-(x + 79, y + 79), cb3, BF
1276 Let x = 135: Call numberA
1277 Let x = 175: Call numberB
1278 Let x = 215: Call numberC
1279 Let x = 255: Call numberD
1280 Let x = 295: Call numberE
1281 Let x = 335: Call numberF
1282 Let x = 375: Call numberG
1283 Let x = 415: Call numberH
1284 Let x = 455: Call numberI
1285 Let x = 495: Call numberJ
1287 Let y = 55: Call number0
1288 Let y = 95: Call number9
1289 Let y = 135: Call number8
1290 Let y = 175: Call number7
1291 Let y = 215: Call number6
1292 Let y = 255: Call number5
1293 Let y = 295: Call number4
1294 Let y = 335: Call number3
1295 Let y = 375: Call number2
1296 Let y = 415: Call number1
1302 Let count = 0: Let index = 0
1303 Let dc1 = Int(Rnd * 8 + 1)
1304 Let dc2 = Int(Rnd * 8 + 1)
1306 Let dc4 = Int(Rnd * 8 + 1)
1307 Let dc5 = Int(Rnd * 8 + 1)
1309 Let w1 = board(dc2, dc1): Let b1 = board(dc5, dc4)
1312 Let count = count + 1
1313 Let dc1 = Int(Rnd * 8 + 1)
1314 Let dc2 = Int(Rnd * 8 + 1)
1315 Let dc4 = Int(Rnd * 8 + 1)
1316 Let dc5 = Int(Rnd * 8 + 1)
1317 Let w1 = board(dc2, dc1): Let b1 = board(dc5, dc4)
1318 If count > 8000 Then Exit Do
1319 Loop While Abs(w1 - b1) < 10
1321 Let w1 = board(dc2, dc1): Let b1 = board(dc5, dc4)
1322 Let fw1x = dc1: Let fw1y = dc2: Let fb1x = dc4: Let fb1y = dc5
1323 Let fw1 = dc3: Let fb1 = dc6
1325 Let x = 20: Let y = 160: Let cf = 15
1326 If dc3 = 1 Then Call king
1327 If dc3 = 2 Then Call queen
1328 If dc3 = 3 Then Call bishop
1329 If dc3 = 4 Then Call knight
1330 If dc3 = 5 Then Call rook
1331 If dc3 = 6 Then Call pawn
1332 Let x = 580: Let y = 160: Let cf = 0
1333 If dc6 = 1 Then Call king
1334 If dc6 = 2 Then Call queen
1335 If dc6 = 3 Then Call bishop
1336 If dc6 = 4 Then Call knight
1337 If dc6 = 5 Then Call rook
1338 If dc6 = 6 Then Call pawn
1339 Let x = 20: Let y = 220
1340 If dc1 = 1 Then Call letterA
1341 If dc1 = 2 Then Call letterB
1342 If dc1 = 3 Then Call letterC
1343 If dc1 = 4 Then Call letterD
1344 If dc1 = 5 Then Call letterE
1345 If dc1 = 6 Then Call letterF
1346 If dc1 = 7 Then Call letterG
1347 If dc1 = 8 Then Call letterH
1348 Let x = 20: Let y = 280
1349 If dc2 = 1 Then Call letter1
1350 If dc2 = 2 Then Call letter2
1351 If dc2 = 3 Then Call letter3
1352 If dc2 = 4 Then Call letter4
1353 If dc2 = 5 Then Call letter5
1354 If dc2 = 6 Then Call letter6
1355 If dc2 = 7 Then Call letter7
1356 If dc2 = 8 Then Call letter8
1357 Let x = 580: Let y = 220
1358 If dc4 = 1 Then Call letterA
1359 If dc4 = 2 Then Call letterB
1360 If dc4 = 3 Then Call letterC
1361 If dc4 = 4 Then Call letterD
1362 If dc4 = 5 Then Call letterE
1363 If dc4 = 6 Then Call letterF
1364 If dc4 = 7 Then Call letterG
1365 If dc4 = 8 Then Call letterH
1366 Let x = 580: Let y = 280
1367 If dc5 = 1 Then Call letter1
1368 If dc5 = 2 Then Call letter2
1369 If dc5 = 3 Then Call letter3
1370 If dc5 = 4 Then Call letter4
1371 If dc5 = 5 Then Call letter5
1372 If dc5 = 6 Then Call letter6
1373 If dc5 = 7 Then Call letter7
1374 If dc5 = 8 Then Call letter8
1375 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
1376 Let cf = 15: Call king
1377 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
1378 Let cf = 0: Call king
1394 Let count = 0: Let index = 0
1395 Let dc1 = Int(Rnd * 8 + 1)
1396 Let dc2 = Int(Rnd * 8 + 1)
1397 Let dc3 = Int(Rnd * 5 + 2)
1398 Let dc4 = Int(Rnd * 8 + 1)
1399 Let dc5 = Int(Rnd * 8 + 1)
1400 Let dc6 = Int(Rnd * 5 + 2)
1401 Let w2 = board(dc2, dc1): Let b2 = board(dc5, dc4)
1408 Let count = count + 1
1409 Let dc1 = Int(Rnd * 8 + 1)
1410 Let dc2 = Int(Rnd * 8 + 1)
1411 Let fw2x = dc1: Let fw2y = dc2
1412 Let w2 = board(dc2, dc1)
1413 If count > 8000 Then Exit Do
1414 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1417 Let count = count + 1
1418 Let dc1 = Int(Rnd * 8 + 1)
1419 Let dc2 = Int(Rnd * 8 + 1)
1420 Let w2 = board(dc2, dc1)
1421 If count > 8000 Then Exit Do
1422 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1425 Let count = count + 1
1426 Let dc1 = Int(Rnd * 8 + 1)
1427 Let dc2 = Int(Rnd * 8 + 1)
1428 Let w2 = board(dc2, dc1)
1429 If count > 8000 Then Exit Do
1430 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1433 Let count = count + 1
1434 Let dc1 = Int(Rnd * 8 + 1)
1435 Let dc2 = Int(Rnd * 8 + 1)
1436 Let fw2x = dc1: Let fw2y = dc2
1437 Let w2 = board(dc2, dc1)
1438 If count > 8000 Then Exit Do
1439 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1442 Let count = count + 1
1443 Let dc1 = Int(Rnd * 8 + 1)
1444 Let dc2 = Int(Rnd * 8 + 1)
1445 Let w2 = board(dc2, dc1)
1446 If count > 8000 Then Exit Do
1447 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc2 = 1 Or dc2 = 8
1454 Let count = count + 1
1455 Let dc4 = Int(Rnd * 8 + 1)
1456 Let dc5 = Int(Rnd * 8 + 1)
1457 Let fb2x = dc4: Let fb2y = dc5
1458 Let b2 = board(dc5, dc4)
1459 If count > 8000 Then Exit Do
1460 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1463 Let count = count + 1
1464 Let dc4 = Int(Rnd * 8 + 1)
1465 Let dc5 = Int(Rnd * 8 + 1)
1466 Let b2 = board(dc5, dc4)
1467 If count > 8000 Then Exit Do
1468 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1471 Let count = count + 1
1472 Let dc4 = Int(Rnd * 8 + 1)
1473 Let dc5 = Int(Rnd * 8 + 1)
1474 Let b2 = board(dc5, dc4)
1475 If count > 8000 Then Exit Do
1476 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1479 Let count = count + 1
1480 Let dc4 = Int(Rnd * 8 + 1)
1481 Let dc5 = Int(Rnd * 8 + 1)
1482 Let fb2x = dc4: Let fb2y = dc5
1483 Let b2 = board(dc5, dc4)
1484 If count > 8000 Then Exit Do
1485 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
1488 Let count = count + 1
1489 Let dc4 = Int(Rnd * 8 + 1)
1490 Let dc5 = Int(Rnd * 8 + 1)
1491 Let b2 = board(dc5, dc4)
1492 If count > 8000 Then Exit Do
1493 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc5 = 1 Or dc5 = 8
1496 Let w2 = board(dc2, dc1): Let b2 = board(dc5, dc4)
1497 Let fw2x = dc1: Let fw2y = dc2: Let fb2x = dc4: Let fb2y = dc5
1498 Let fw2 = dc3: Let fb2 = dc6
1500 Let x = 20: Let y = 160: Let cf = 15
1501 If dc3 = 1 Then Call king
1502 If dc3 = 2 Then Call queen
1503 If dc3 = 3 Then Call bishop
1504 If dc3 = 4 Then Call knight
1505 If dc3 = 5 Then Call rook
1506 If dc3 = 6 Then Call pawn
1507 Let x = 580: Let y = 160: Let cf = 0
1508 If dc6 = 1 Then Call king
1509 If dc6 = 2 Then Call queen
1510 If dc6 = 3 Then Call bishop
1511 If dc6 = 4 Then Call knight
1512 If dc6 = 5 Then Call rook
1513 If dc6 = 6 Then Call pawn
1514 Let x = 20: Let y = 220
1515 If dc1 = 1 Then Call letterA
1516 If dc1 = 2 Then Call letterB
1517 If dc1 = 3 Then Call letterC
1518 If dc1 = 4 Then Call letterD
1519 If dc1 = 5 Then Call letterE
1520 If dc1 = 6 Then Call letterF
1521 If dc1 = 7 Then Call letterG
1522 If dc1 = 8 Then Call letterH
1523 Let x = 20: Let y = 280
1524 If dc2 = 1 Then Call letter1
1525 If dc2 = 2 Then Call letter2
1526 If dc2 = 3 Then Call letter3
1527 If dc2 = 4 Then Call letter4
1528 If dc2 = 5 Then Call letter5
1529 If dc2 = 6 Then Call letter6
1530 If dc2 = 7 Then Call letter7
1531 If dc2 = 8 Then Call letter8
1532 Let x = 580: Let y = 220
1533 If dc4 = 1 Then Call letterA
1534 If dc4 = 2 Then Call letterB
1535 If dc4 = 3 Then Call letterC
1536 If dc4 = 4 Then Call letterD
1537 If dc4 = 5 Then Call letterE
1538 If dc4 = 6 Then Call letterF
1539 If dc4 = 7 Then Call letterG
1540 If dc4 = 8 Then Call letterH
1541 Let x = 580: Let y = 280
1542 If dc5 = 1 Then Call letter1
1543 If dc5 = 2 Then Call letter2
1544 If dc5 = 3 Then Call letter3
1545 If dc5 = 4 Then Call letter4
1546 If dc5 = 5 Then Call letter5
1547 If dc5 = 6 Then Call letter6
1548 If dc5 = 7 Then Call letter7
1549 If dc5 = 8 Then Call letter8
1550 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
1552 If dc3 = 1 Then Call king
1553 If dc3 = 2 Then Call queen
1554 If dc3 = 3 Then Call bishop
1555 If dc3 = 4 Then Call knight
1556 If dc3 = 5 Then Call rook
1557 If dc3 = 6 Then Call pawn
1558 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
1560 If dc6 = 1 Then Call king
1561 If dc6 = 2 Then Call queen
1562 If dc6 = 3 Then Call bishop
1563 If dc6 = 4 Then Call knight
1564 If dc6 = 5 Then Call rook
1565 If dc6 = 6 Then Call pawn
1581 Let count = 0: Let index = 0
1582 Let dc1 = Int(Rnd * 8 + 1)
1583 Let dc2 = Int(Rnd * 8 + 1)
1584 Let dc3 = Int(Rnd * 5 + 2)
1585 Let dc4 = Int(Rnd * 8 + 1)
1586 Let dc5 = Int(Rnd * 8 + 1)
1587 Let dc6 = Int(Rnd * 5 + 2)
1588 Let w3 = board(dc2, dc1): Let b3 = board(dc5, dc4)
1595 Let count = count + 1
1596 Let dc1 = Int(Rnd * 8 + 1)
1597 Let dc2 = Int(Rnd * 8 + 1)
1598 Let fw3x = dc1: Let fw3y = dc2
1599 Let w3 = board(dc2, dc1)
1600 If count > 8000 Then Exit Do
1601 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1604 Let count = count + 1
1605 Let dc1 = Int(Rnd * 8 + 1)
1606 Let dc2 = Int(Rnd * 8 + 1)
1607 Let w3 = board(dc2, dc1)
1608 If count > 8000 Then Exit Do
1609 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1612 Let count = count + 1
1613 Let dc1 = Int(Rnd * 8 + 1)
1614 Let dc2 = Int(Rnd * 8 + 1)
1615 Let w3 = board(dc2, dc1)
1616 If count > 8000 Then Exit Do
1617 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1620 Let count = count + 1
1621 Let dc1 = Int(Rnd * 8 + 1)
1622 Let dc2 = Int(Rnd * 8 + 1)
1623 Let fw3x = dc1: Let fw3y = dc2
1624 Let w3 = board(dc2, dc1)
1625 If count > 8000 Then Exit Do
1626 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1629 Let count = count + 1
1630 Let dc1 = Int(Rnd * 8 + 1)
1631 Let dc2 = Int(Rnd * 8 + 1)
1632 Let w3 = board(dc2, dc1)
1633 If count > 8000 Then Exit Do
1634 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc2 = 1 Or dc2 = 8
1641 Let count = count + 1
1642 Let dc4 = Int(Rnd * 8 + 1)
1643 Let dc5 = Int(Rnd * 8 + 1)
1644 Let fb3x = dc4: Let fb3y = dc5
1645 Let b3 = board(dc5, dc4)
1646 If count > 8000 Then Exit Do
1647 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1650 Let count = count + 1
1651 Let dc4 = Int(Rnd * 8 + 1)
1652 Let dc5 = Int(Rnd * 8 + 1)
1653 Let b3 = board(dc5, dc4)
1654 If count > 8000 Then Exit Do
1655 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1658 Let count = count + 1
1659 Let dc4 = Int(Rnd * 8 + 1)
1660 Let dc5 = Int(Rnd * 8 + 1)
1661 Let b3 = board(dc5, dc4)
1662 If count > 8000 Then Exit Do
1663 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1666 Let count = count + 1
1667 Let dc4 = Int(Rnd * 8 + 1)
1668 Let dc5 = Int(Rnd * 8 + 1)
1669 Let fb3x = dc4: Let fb3y = dc5
1670 Let b3 = board(dc5, dc4)
1671 If count > 8000 Then Exit Do
1672 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
1675 Let count = count + 1
1676 Let dc4 = Int(Rnd * 8 + 1)
1677 Let dc5 = Int(Rnd * 8 + 1)
1678 Let b3 = board(dc5, dc4)
1679 If count > 8000 Then Exit Do
1680 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc5 = 1 Or dc5 = 8
1683 Let w3 = board(dc2, dc1): Let b3 = board(dc5, dc4)
1684 Let fw3x = dc1: Let fw3y = dc2: Let fb3x = dc4: Let fb3y = dc5
1685 Let fw3 = dc3: Let fb3 = dc6
1687 Let x = 20: Let y = 160: Let cf = 15
1688 If dc3 = 1 Then Call king
1689 If dc3 = 2 Then Call queen
1690 If dc3 = 3 Then Call bishop
1691 If dc3 = 4 Then Call knight
1692 If dc3 = 5 Then Call rook
1693 If dc3 = 6 Then Call pawn
1694 Let x = 580: Let y = 160: Let cf = 0
1695 If dc6 = 1 Then Call king
1696 If dc6 = 2 Then Call queen
1697 If dc6 = 3 Then Call bishop
1698 If dc6 = 4 Then Call knight
1699 If dc6 = 5 Then Call rook
1700 If dc6 = 6 Then Call pawn
1701 Let x = 20: Let y = 220
1702 If dc1 = 1 Then Call letterA
1703 If dc1 = 2 Then Call letterB
1704 If dc1 = 3 Then Call letterC
1705 If dc1 = 4 Then Call letterD
1706 If dc1 = 5 Then Call letterE
1707 If dc1 = 6 Then Call letterF
1708 If dc1 = 7 Then Call letterG
1709 If dc1 = 8 Then Call letterH
1710 Let x = 20: Let y = 280
1711 If dc2 = 1 Then Call letter1
1712 If dc2 = 2 Then Call letter2
1713 If dc2 = 3 Then Call letter3
1714 If dc2 = 4 Then Call letter4
1715 If dc2 = 5 Then Call letter5
1716 If dc2 = 6 Then Call letter6
1717 If dc2 = 7 Then Call letter7
1718 If dc2 = 8 Then Call letter8
1719 Let x = 580: Let y = 220
1720 If dc4 = 1 Then Call letterA
1721 If dc4 = 2 Then Call letterB
1722 If dc4 = 3 Then Call letterC
1723 If dc4 = 4 Then Call letterD
1724 If dc4 = 5 Then Call letterE
1725 If dc4 = 6 Then Call letterF
1726 If dc4 = 7 Then Call letterG
1727 If dc4 = 8 Then Call letterH
1728 Let x = 580: Let y = 280
1729 If dc5 = 1 Then Call letter1
1730 If dc5 = 2 Then Call letter2
1731 If dc5 = 3 Then Call letter3
1732 If dc5 = 4 Then Call letter4
1733 If dc5 = 5 Then Call letter5
1734 If dc5 = 6 Then Call letter6
1735 If dc5 = 7 Then Call letter7
1736 If dc5 = 8 Then Call letter8
1737 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
1739 If dc3 = 1 Then Call king
1740 If dc3 = 2 Then Call queen
1741 If dc3 = 3 Then Call bishop
1742 If dc3 = 4 Then Call knight
1743 If dc3 = 5 Then Call rook
1744 If dc3 = 6 Then Call pawn
1745 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
1747 If dc6 = 1 Then Call king
1748 If dc6 = 2 Then Call queen
1749 If dc6 = 3 Then Call bishop
1750 If dc6 = 4 Then Call knight
1751 If dc6 = 5 Then Call rook
1752 If dc6 = 6 Then Call pawn
1768 Let count = 0: Let index = 0
1769 Let dc1 = Int(Rnd * 8 + 1)
1770 Let dc2 = Int(Rnd * 8 + 1)
1771 Let dc3 = Int(Rnd * 5 + 2)
1772 Let dc4 = Int(Rnd * 8 + 1)
1773 Let dc5 = Int(Rnd * 8 + 1)
1774 Let dc6 = Int(Rnd * 5 + 2)
1775 Let w4 = board(dc2, dc1): Let b4 = board(dc5, dc4)
1782 Let count = count + 1
1783 Let dc1 = Int(Rnd * 8 + 1)
1784 Let dc2 = Int(Rnd * 8 + 1)
1785 Let fw4x = dc1: Let fw4y = dc2
1786 Let w4 = board(dc2, dc1)
1787 If count > 8000 Then Exit Do
1788 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1791 Let count = count + 1
1792 Let dc1 = Int(Rnd * 8 + 1)
1793 Let dc2 = Int(Rnd * 8 + 1)
1794 Let w4 = board(dc2, dc1)
1795 If count > 8000 Then Exit Do
1796 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1799 Let count = count + 1
1800 Let dc1 = Int(Rnd * 8 + 1)
1801 Let dc2 = Int(Rnd * 8 + 1)
1802 Let w4 = board(dc2, dc1)
1803 If count > 8000 Then Exit Do
1804 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1807 Let count = count + 1
1808 Let dc1 = Int(Rnd * 8 + 1)
1809 Let dc2 = Int(Rnd * 8 + 1)
1810 Let fw4x = dc1: Let fw4y = dc2
1811 Let w4 = board(dc2, dc1)
1812 If count > 8000 Then Exit Do
1813 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1816 Let count = count + 1
1817 Let dc1 = Int(Rnd * 8 + 1)
1818 Let dc2 = Int(Rnd * 8 + 1)
1819 Let w4 = board(dc2, dc1)
1820 If count > 8000 Then Exit Do
1821 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc2 = 1 Or dc2 = 8
1828 Let count = count + 1
1829 Let dc4 = Int(Rnd * 8 + 1)
1830 Let dc5 = Int(Rnd * 8 + 1)
1831 Let fb4x = dc4: Let fb4y = dc5
1832 Let b4 = board(dc5, dc4)
1833 If count > 8000 Then Exit Do
1834 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1837 Let count = count + 1
1838 Let dc4 = Int(Rnd * 8 + 1)
1839 Let dc5 = Int(Rnd * 8 + 1)
1840 Let b4 = board(dc5, dc4)
1841 If count > 8000 Then Exit Do
1842 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1845 Let count = count + 1
1846 Let dc4 = Int(Rnd * 8 + 1)
1847 Let dc5 = Int(Rnd * 8 + 1)
1848 Let b4 = board(dc5, dc4)
1849 If count > 8000 Then Exit Do
1850 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1853 Let count = count + 1
1854 Let dc4 = Int(Rnd * 8 + 1)
1855 Let dc5 = Int(Rnd * 8 + 1)
1856 Let fb4x = dc4: Let fb4y = dc5
1857 Let b4 = board(dc5, dc4)
1858 If count > 8000 Then Exit Do
1859 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
1862 Let count = count + 1
1863 Let dc4 = Int(Rnd * 8 + 1)
1864 Let dc5 = Int(Rnd * 8 + 1)
1865 Let b4 = board(dc5, dc4)
1866 If count > 8000 Then Exit Do
1867 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc5 = 1 Or dc5 = 8
1870 Let w4 = board(dc2, dc1): Let b4 = board(dc5, dc4)
1871 Let fw4x = dc1: Let fw4y = dc2: Let fb4x = dc4: Let fb4y = dc5
1872 Let fw4 = dc3: Let fb4 = dc6
1874 Let x = 20: Let y = 160: Let cf = 15
1875 If dc3 = 1 Then Call king
1876 If dc3 = 2 Then Call queen
1877 If dc3 = 3 Then Call bishop
1878 If dc3 = 4 Then Call knight
1879 If dc3 = 5 Then Call rook
1880 If dc3 = 6 Then Call pawn
1881 Let x = 580: Let y = 160: Let cf = 0
1882 If dc6 = 1 Then Call king
1883 If dc6 = 2 Then Call queen
1884 If dc6 = 3 Then Call bishop
1885 If dc6 = 4 Then Call knight
1886 If dc6 = 5 Then Call rook
1887 If dc6 = 6 Then Call pawn
1888 Let x = 20: Let y = 220
1889 If dc1 = 1 Then Call letterA
1890 If dc1 = 2 Then Call letterB
1891 If dc1 = 3 Then Call letterC
1892 If dc1 = 4 Then Call letterD
1893 If dc1 = 5 Then Call letterE
1894 If dc1 = 6 Then Call letterF
1895 If dc1 = 7 Then Call letterG
1896 If dc1 = 8 Then Call letterH
1897 Let x = 20: Let y = 280
1898 If dc2 = 1 Then Call letter1
1899 If dc2 = 2 Then Call letter2
1900 If dc2 = 3 Then Call letter3
1901 If dc2 = 4 Then Call letter4
1902 If dc2 = 5 Then Call letter5
1903 If dc2 = 6 Then Call letter6
1904 If dc2 = 7 Then Call letter7
1905 If dc2 = 8 Then Call letter8
1906 Let x = 580: Let y = 220
1907 If dc4 = 1 Then Call letterA
1908 If dc4 = 2 Then Call letterB
1909 If dc4 = 3 Then Call letterC
1910 If dc4 = 4 Then Call letterD
1911 If dc4 = 5 Then Call letterE
1912 If dc4 = 6 Then Call letterF
1913 If dc4 = 7 Then Call letterG
1914 If dc4 = 8 Then Call letterH
1915 Let x = 580: Let y = 280
1916 If dc5 = 1 Then Call letter1
1917 If dc5 = 2 Then Call letter2
1918 If dc5 = 3 Then Call letter3
1919 If dc5 = 4 Then Call letter4
1920 If dc5 = 5 Then Call letter5
1921 If dc5 = 6 Then Call letter6
1922 If dc5 = 7 Then Call letter7
1923 If dc5 = 8 Then Call letter8
1924 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
1926 If dc3 = 1 Then Call king
1927 If dc3 = 2 Then Call queen
1928 If dc3 = 3 Then Call bishop
1929 If dc3 = 4 Then Call knight
1930 If dc3 = 5 Then Call rook
1931 If dc3 = 6 Then Call pawn
1932 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
1934 If dc6 = 1 Then Call king
1935 If dc6 = 2 Then Call queen
1936 If dc6 = 3 Then Call bishop
1937 If dc6 = 4 Then Call knight
1938 If dc6 = 5 Then Call rook
1939 If dc6 = 6 Then Call pawn
1956 Let count = 0: Let index = 0
1957 Let dc1 = Int(Rnd * 8 + 1)
1958 Let dc2 = Int(Rnd * 8 + 1)
1960 Let dc4 = Int(Rnd * 8 + 1)
1961 Let dc5 = Int(Rnd * 8 + 1)
1963 Let w1 = board(dc2, dc1): Let b1 = board(dc5, dc4)
1966 Let count = count + 1
1967 Let dc1 = Int(Rnd * 8 + 1)
1968 Let dc2 = Int(Rnd * 8 + 1)
1969 Let dc4 = Int(Rnd * 8 + 1)
1970 Let dc5 = Int(Rnd * 8 + 1)
1971 Let w1 = board(dc2, dc1): Let b1 = board(dc5, dc4)
1972 If count > 8000 Then Exit Do
1973 Loop While Abs(w1 - b1) < 10
1975 Let w1 = board(dc2, dc1): Let b1 = board(dc5, dc4)
1976 Let fw1x = dc1: Let fw1y = dc2: Let fb1x = dc4: Let fb1y = dc5
1977 Let fw1 = dc3: Let fb1 = dc6
1979 Let x = 20: Let y = 160: Let cf = 15
1980 If dc3 = 1 Then Call king
1981 If dc3 = 2 Then Call queen
1982 If dc3 = 3 Then Call bishop
1983 If dc3 = 4 Then Call knight
1984 If dc3 = 5 Then Call rook
1985 If dc3 = 6 Then Call checker
1986 Let x = 580: Let y = 160: Let cf = 0
1987 If dc6 = 1 Then Call king
1988 If dc6 = 2 Then Call queen
1989 If dc6 = 3 Then Call bishop
1990 If dc6 = 4 Then Call knight
1991 If dc6 = 5 Then Call rook
1992 If dc6 = 6 Then Call checker
1993 Let x = 20: Let y = 220
1994 If dc1 = 1 Then Call letterA
1995 If dc1 = 2 Then Call letterB
1996 If dc1 = 3 Then Call letterC
1997 If dc1 = 4 Then Call letterD
1998 If dc1 = 5 Then Call letterE
1999 If dc1 = 6 Then Call letterF
2000 If dc1 = 7 Then Call letterG
2001 If dc1 = 8 Then Call letterH
2002 Let x = 20: Let y = 280
2003 If dc2 = 1 Then Call letter1
2004 If dc2 = 2 Then Call letter2
2005 If dc2 = 3 Then Call letter3
2006 If dc2 = 4 Then Call letter4
2007 If dc2 = 5 Then Call letter5
2008 If dc2 = 6 Then Call letter6
2009 If dc2 = 7 Then Call letter7
2010 If dc2 = 8 Then Call letter8
2011 Let x = 580: Let y = 220
2012 If dc4 = 1 Then Call letterA
2013 If dc4 = 2 Then Call letterB
2014 If dc4 = 3 Then Call letterC
2015 If dc4 = 4 Then Call letterD
2016 If dc4 = 5 Then Call letterE
2017 If dc4 = 6 Then Call letterF
2018 If dc4 = 7 Then Call letterG
2019 If dc4 = 8 Then Call letterH
2020 Let x = 580: Let y = 280
2021 If dc5 = 1 Then Call letter1
2022 If dc5 = 2 Then Call letter2
2023 If dc5 = 3 Then Call letter3
2024 If dc5 = 4 Then Call letter4
2025 If dc5 = 5 Then Call letter5
2026 If dc5 = 6 Then Call letter6
2027 If dc5 = 7 Then Call letter7
2028 If dc5 = 8 Then Call letter8
2029 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
2030 Let cf = 15: Call king
2031 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
2032 Let cf = 0: Call king
2048 Let count = 0: Let index = 0
2049 Let dc1 = Int(Rnd * 8 + 1)
2050 Let dc2 = Int(Rnd * 8 + 1)
2051 Let dc3 = Int(Rnd * 5 + 2)
2052 Let dc4 = Int(Rnd * 8 + 1)
2053 Let dc5 = Int(Rnd * 8 + 1)
2054 Let dc6 = Int(Rnd * 5 + 2)
2055 Let w2 = board(dc2, dc1): Let b2 = board(dc5, dc4)
2062 Let count = count + 1
2063 Let dc1 = Int(Rnd * 8 + 1)
2064 Let dc2 = Int(Rnd * 8 + 1)
2065 Let w2 = board(dc2, dc1)
2066 If count > 8000 Then Exit Do
2067 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2071 Let count = count + 1
2072 Let dc1 = Int(Rnd * 8 + 1)
2073 Let dc2 = Int(Rnd * 8 + 1)
2074 Let w2 = board(dc2, dc1)
2075 If count > 8000 Then Exit Do
2076 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2080 Let count = count + 1
2081 Let dc1 = Int(Rnd * 8 + 1)
2082 Let dc2 = Int(Rnd * 8 + 1)
2083 Let w2 = board(dc2, dc1)
2084 If count > 8000 Then Exit Do
2085 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2089 Let count = count + 1
2090 Let dc1 = Int(Rnd * 8 + 1)
2091 Let dc2 = Int(Rnd * 8 + 1)
2092 Let fw2x = dc1: Let fw2y = dc2
2093 Let w2 = board(dc2, dc1)
2094 If count > 8000 Then Exit Do
2095 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2098 Let count = count + 1
2099 Let dc1 = Int(Rnd * 8 + 1)
2100 Let dc2 = Int(Rnd * 8 + 1)
2101 Let w2 = board(dc2, dc1)
2102 If count > 8000 Then Exit Do
2103 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc2 < 3 Or dc2 > 5
2110 Let count = count + 1
2111 Let dc4 = Int(Rnd * 8 + 1)
2112 Let dc5 = Int(Rnd * 8 + 1)
2113 Let b2 = board(dc5, dc4)
2114 If count > 8000 Then Exit Do
2115 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2119 Let count = count + 1
2120 Let dc4 = Int(Rnd * 8 + 1)
2121 Let dc5 = Int(Rnd * 8 + 1)
2122 Let b2 = board(dc5, dc4)
2123 If count > 8000 Then Exit Do
2124 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2128 Let count = count + 1
2129 Let dc4 = Int(Rnd * 8 + 1)
2130 Let dc5 = Int(Rnd * 8 + 1)
2131 Let b2 = board(dc5, dc4)
2132 If count > 8000 Then Exit Do
2133 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2137 Let count = count + 1
2138 Let dc4 = Int(Rnd * 8 + 1)
2139 Let dc5 = Int(Rnd * 8 + 1)
2140 Let fb2x = dc4: Let fb2y = dc5
2141 Let b2 = board(dc5, dc4)
2142 If count > 8000 Then Exit Do
2143 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2146 Let count = count + 1
2147 Let dc4 = Int(Rnd * 8 + 1)
2148 Let dc5 = Int(Rnd * 8 + 1)
2149 Let b2 = board(dc5, dc4)
2150 If count > 8000 Then Exit Do
2151 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc5 < 4 Or dc5 > 6
2154 Let w2 = board(dc2, dc1): Let b2 = board(dc5, dc4)
2155 Let fw2x = dc1: Let fw2y = dc2: Let fb2x = dc4: Let fb2y = dc5
2156 Let fw2 = dc3: Let fb2 = dc6
2158 Let x = 20: Let y = 160: Let cf = 15
2159 If dc3 = 1 Then Call king
2160 If dc3 = 2 Then Call queen
2161 If dc3 = 3 Then Call bishop
2162 If dc3 = 4 Then Call knight
2163 If dc3 = 5 Then Call rook
2164 If dc3 = 6 Then Call checker
2165 Let x = 580: Let y = 160: Let cf = 0
2166 If dc6 = 1 Then Call king
2167 If dc6 = 2 Then Call queen
2168 If dc6 = 3 Then Call bishop
2169 If dc6 = 4 Then Call knight
2170 If dc6 = 5 Then Call rook
2171 If dc6 = 6 Then Call checker
2172 Let x = 20: Let y = 220
2173 If dc1 = 1 Then Call letterA
2174 If dc1 = 2 Then Call letterB
2175 If dc1 = 3 Then Call letterC
2176 If dc1 = 4 Then Call letterD
2177 If dc1 = 5 Then Call letterE
2178 If dc1 = 6 Then Call letterF
2179 If dc1 = 7 Then Call letterG
2180 If dc1 = 8 Then Call letterH
2181 Let x = 20: Let y = 280
2182 If dc2 = 1 Then Call letter1
2183 If dc2 = 2 Then Call letter2
2184 If dc2 = 3 Then Call letter3
2185 If dc2 = 4 Then Call letter4
2186 If dc2 = 5 Then Call letter5
2187 If dc2 = 6 Then Call letter6
2188 If dc2 = 7 Then Call letter7
2189 If dc2 = 8 Then Call letter8
2190 Let x = 580: Let y = 220
2191 If dc4 = 1 Then Call letterA
2192 If dc4 = 2 Then Call letterB
2193 If dc4 = 3 Then Call letterC
2194 If dc4 = 4 Then Call letterD
2195 If dc4 = 5 Then Call letterE
2196 If dc4 = 6 Then Call letterF
2197 If dc4 = 7 Then Call letterG
2198 If dc4 = 8 Then Call letterH
2199 Let x = 580: Let y = 280
2200 If dc5 = 1 Then Call letter1
2201 If dc5 = 2 Then Call letter2
2202 If dc5 = 3 Then Call letter3
2203 If dc5 = 4 Then Call letter4
2204 If dc5 = 5 Then Call letter5
2205 If dc5 = 6 Then Call letter6
2206 If dc5 = 7 Then Call letter7
2207 If dc5 = 8 Then Call letter8
2208 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
2210 If dc3 = 1 Then Call king
2211 If dc3 = 2 Then Call queen
2212 If dc3 = 3 Then Call bishop
2213 If dc3 = 4 Then Call knight
2214 If dc3 = 5 Then Call rook
2215 If dc3 = 6 Then Call checker
2216 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
2218 If dc6 = 1 Then Call king
2219 If dc6 = 2 Then Call queen
2220 If dc6 = 3 Then Call bishop
2221 If dc6 = 4 Then Call knight
2222 If dc6 = 5 Then Call rook
2223 If dc6 = 6 Then Call checker
2239 Let count = 0: Let index = 0
2240 Let dc1 = Int(Rnd * 8 + 1)
2241 Let dc2 = Int(Rnd * 8 + 1)
2242 Let dc3 = Int(Rnd * 5 + 2)
2243 Let dc4 = Int(Rnd * 8 + 1)
2244 Let dc5 = Int(Rnd * 8 + 1)
2245 Let dc6 = Int(Rnd * 5 + 2)
2246 Let w3 = board(dc2, dc1): Let b3 = board(dc5, dc4)
2253 Let count = count + 1
2254 Let dc1 = Int(Rnd * 8 + 1)
2255 Let dc2 = Int(Rnd * 8 + 1)
2256 Let w3 = board(dc2, dc1)
2257 If count > 8000 Then Exit Do
2258 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2260 Let indexw3 = indexw3 + 1
2262 Let count = count + 1
2263 Let dc1 = Int(Rnd * 8 + 1)
2264 Let dc2 = Int(Rnd * 8 + 1)
2265 Let w3 = board(dc2, dc1)
2266 If count > 8000 Then Exit Do
2267 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2269 Let indexw4 = indexw4 + 1
2271 Let count = count + 1
2272 Let dc1 = Int(Rnd * 8 + 1)
2273 Let dc2 = Int(Rnd * 8 + 1)
2274 Let w3 = board(dc2, dc1)
2275 If count > 8000 Then Exit Do
2276 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2278 Let indexw5 = indexw5 + 1
2280 Let count = count + 1
2281 Let dc1 = Int(Rnd * 8 + 1)
2282 Let dc2 = Int(Rnd * 8 + 1)
2283 Let fw3x = dc1: Let fw3y = dc2
2284 Let w3 = board(dc2, dc1)
2285 If count > 8000 Then Exit Do
2286 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2289 Let count = count + 1
2290 Let dc1 = Int(Rnd * 8 + 1)
2291 Let dc2 = Int(Rnd * 8 + 1)
2292 Let w3 = board(dc2, dc1)
2293 If count > 8000 Then Exit Do
2294 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc2 < 3 Or dc2 > 5
2301 Let count = count + 1
2302 Let dc4 = Int(Rnd * 8 + 1)
2303 Let dc5 = Int(Rnd * 8 + 1)
2304 Let b3 = board(dc5, dc4)
2305 If count > 8000 Then Exit Do
2306 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2308 Let indexb3 = indexb3 + 1
2310 Let count = count + 1
2311 Let dc4 = Int(Rnd * 8 + 1)
2312 Let dc5 = Int(Rnd * 8 + 1)
2313 Let b3 = board(dc5, dc4)
2314 If count > 8000 Then Exit Do
2315 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2317 Let indexb4 = indexb4 + 1
2319 Let count = count + 1
2320 Let dc4 = Int(Rnd * 8 + 1)
2321 Let dc5 = Int(Rnd * 8 + 1)
2322 Let b3 = board(dc5, dc4)
2323 If count > 8000 Then Exit Do
2324 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2326 Let indexb5 = indexb5 + 1
2328 Let count = count + 1
2329 Let dc4 = Int(Rnd * 8 + 1)
2330 Let dc5 = Int(Rnd * 8 + 1)
2331 Let fb3x = dc4: Let fb3y = dc5
2332 Let b3 = board(dc5, dc4)
2333 If count > 8000 Then Exit Do
2334 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
2337 Let count = count + 1
2338 Let dc4 = Int(Rnd * 8 + 1)
2339 Let dc5 = Int(Rnd * 8 + 1)
2340 Let b3 = board(dc5, dc4)
2341 If count > 8000 Then Exit Do
2342 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc5 < 4 Or dc5 > 6
2345 Let w3 = board(dc2, dc1): Let b3 = board(dc5, dc4)
2346 Let fw3x = dc1: Let fw3y = dc2: Let fb3x = dc4: Let fb3y = dc5
2347 Let fw3 = dc3: Let fb3 = dc6
2349 Let x = 20: Let y = 160: Let cf = 15
2350 If dc3 = 1 Then Call king
2351 If dc3 = 2 Then Call queen
2352 If dc3 = 3 Then Call bishop
2353 If dc3 = 4 Then Call knight
2354 If dc3 = 5 Then Call rook
2355 If dc3 = 6 Then Call checker
2356 Let x = 580: Let y = 160: Let cf = 0
2357 If dc6 = 1 Then Call king
2358 If dc6 = 2 Then Call queen
2359 If dc6 = 3 Then Call bishop
2360 If dc6 = 4 Then Call knight
2361 If dc6 = 5 Then Call rook
2362 If dc6 = 6 Then Call checker
2363 Let x = 20: Let y = 220
2364 If dc1 = 1 Then Call letterA
2365 If dc1 = 2 Then Call letterB
2366 If dc1 = 3 Then Call letterC
2367 If dc1 = 4 Then Call letterD
2368 If dc1 = 5 Then Call letterE
2369 If dc1 = 6 Then Call letterF
2370 If dc1 = 7 Then Call letterG
2371 If dc1 = 8 Then Call letterH
2372 Let x = 20: Let y = 280
2373 If dc2 = 1 Then Call letter1
2374 If dc2 = 2 Then Call letter2
2375 If dc2 = 3 Then Call letter3
2376 If dc2 = 4 Then Call letter4
2377 If dc2 = 5 Then Call letter5
2378 If dc2 = 6 Then Call letter6
2379 If dc2 = 7 Then Call letter7
2380 If dc2 = 8 Then Call letter8
2381 Let x = 580: Let y = 220
2382 If dc4 = 1 Then Call letterA
2383 If dc4 = 2 Then Call letterB
2384 If dc4 = 3 Then Call letterC
2385 If dc4 = 4 Then Call letterD
2386 If dc4 = 5 Then Call letterE
2387 If dc4 = 6 Then Call letterF
2388 If dc4 = 7 Then Call letterG
2389 If dc4 = 8 Then Call letterH
2390 Let x = 580: Let y = 280
2391 If dc5 = 1 Then Call letter1
2392 If dc5 = 2 Then Call letter2
2393 If dc5 = 3 Then Call letter3
2394 If dc5 = 4 Then Call letter4
2395 If dc5 = 5 Then Call letter5
2396 If dc5 = 6 Then Call letter6
2397 If dc5 = 7 Then Call letter7
2398 If dc5 = 8 Then Call letter8
2399 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
2401 If dc3 = 1 Then Call king
2402 If dc3 = 2 Then Call queen
2403 If dc3 = 3 Then Call bishop
2404 If dc3 = 4 Then Call knight
2405 If dc3 = 5 Then Call rook
2406 If dc3 = 6 Then Call checker
2407 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
2409 If dc6 = 1 Then Call king
2410 If dc6 = 2 Then Call queen
2411 If dc6 = 3 Then Call bishop
2412 If dc6 = 4 Then Call knight
2413 If dc6 = 5 Then Call rook
2414 If dc6 = 6 Then Call checker
2430 Let count = 0: Let index = 0
2431 Let dc1 = Int(Rnd * 8 + 1)
2432 Let dc2 = Int(Rnd * 8 + 1)
2433 Let dc3 = Int(Rnd * 5 + 2)
2434 Let dc4 = Int(Rnd * 8 + 1)
2435 Let dc5 = Int(Rnd * 8 + 1)
2436 Let dc6 = Int(Rnd * 5 + 2)
2437 Let w4 = board(dc2, dc1): Let b4 = board(dc5, dc4)
2438 If indexw3 > 2 Or indexw4 > 2 Or indexw5 > 2 Then Let dc3 = 6
2439 If indexb3 > 2 Or indexb4 > 2 Or indexb5 > 2 Then Let dc6 = 6
2446 Let count = count + 1
2447 Let dc1 = Int(Rnd * 8 + 1)
2448 Let dc2 = Int(Rnd * 8 + 1)
2449 Let w4 = board(dc2, dc1)
2450 If count > 8000 Then Exit Do
2451 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2454 Let count = count + 1
2455 Let dc1 = Int(Rnd * 8 + 1)
2456 Let dc2 = Int(Rnd * 8 + 1)
2457 Let w4 = board(dc2, dc1)
2458 If count > 8000 Then Exit Do
2459 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2462 Let count = count + 1
2463 Let dc1 = Int(Rnd * 8 + 1)
2464 Let dc2 = Int(Rnd * 8 + 1)
2465 Let w4 = board(dc2, dc1)
2466 If count > 8000 Then Exit Do
2467 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2470 Let count = count + 1
2471 Let dc1 = Int(Rnd * 8 + 1)
2472 Let dc2 = Int(Rnd * 8 + 1)
2473 Let fw4x = dc1: Let fw4y = dc2
2474 Let w4 = board(dc2, dc1)
2475 If count > 8000 Then Exit Do
2476 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2479 Let count = count + 1
2480 Let dc1 = Int(Rnd * 8 + 1)
2481 Let dc2 = Int(Rnd * 8 + 1)
2482 Let w4 = board(dc2, dc1)
2483 If count > 8000 Then Exit Do
2484 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc2 < 3 Or dc2 > 5
2491 Let count = count + 1
2492 Let dc4 = Int(Rnd * 8 + 1)
2493 Let dc5 = Int(Rnd * 8 + 1)
2494 Let b4 = board(dc5, dc4)
2495 If count > 8000 Then Exit Do
2496 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2499 Let count = count + 1
2500 Let dc4 = Int(Rnd * 8 + 1)
2501 Let dc5 = Int(Rnd * 8 + 1)
2502 Let b4 = board(dc5, dc4)
2503 If count > 8000 Then Exit Do
2504 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2507 Let count = count + 1
2508 Let dc4 = Int(Rnd * 8 + 1)
2509 Let dc5 = Int(Rnd * 8 + 1)
2510 Let b4 = board(dc5, dc4)
2511 If count > 8000 Then Exit Do
2512 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2515 Let count = count + 1
2516 Let dc4 = Int(Rnd * 8 + 1)
2517 Let dc5 = Int(Rnd * 8 + 1)
2518 Let fb4x = dc4: Let fb4y = dc5
2519 Let b4 = board(dc5, dc4)
2520 If count > 8000 Then Exit Do
2521 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
2524 Let count = count + 1
2525 Let dc4 = Int(Rnd * 8 + 1)
2526 Let dc5 = Int(Rnd * 8 + 1)
2527 Let b4 = board(dc5, dc4)
2528 If count > 8000 Then Exit Do
2529 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc5 <= 4 Or dc5 >= 6
2532 Let w4 = board(dc2, dc1): Let b4 = board(dc5, dc4)
2533 Let fw4x = dc1: Let fw4y = dc2: Let fb4x = dc4: Let fb4y = dc5
2534 Let fw4 = dc3: Let fb4 = dc6
2536 Let x = 20: Let y = 160: Let cf = 15
2537 If dc3 = 1 Then Call king
2538 If dc3 = 2 Then Call queen
2539 If dc3 = 3 Then Call bishop
2540 If dc3 = 4 Then Call knight
2541 If dc3 = 5 Then Call rook
2542 If dc3 = 6 Then Call checker
2543 Let x = 580: Let y = 160: Let cf = 0
2544 If dc6 = 1 Then Call king
2545 If dc6 = 2 Then Call queen
2546 If dc6 = 3 Then Call bishop
2547 If dc6 = 4 Then Call knight
2548 If dc6 = 5 Then Call rook
2549 If dc6 = 6 Then Call checker
2550 Let x = 20: Let y = 220
2551 If dc1 = 1 Then Call letterA
2552 If dc1 = 2 Then Call letterB
2553 If dc1 = 3 Then Call letterC
2554 If dc1 = 4 Then Call letterD
2555 If dc1 = 5 Then Call letterE
2556 If dc1 = 6 Then Call letterF
2557 If dc1 = 7 Then Call letterG
2558 If dc1 = 8 Then Call letterH
2559 Let x = 20: Let y = 280
2560 If dc2 = 1 Then Call letter1
2561 If dc2 = 2 Then Call letter2
2562 If dc2 = 3 Then Call letter3
2563 If dc2 = 4 Then Call letter4
2564 If dc2 = 5 Then Call letter5
2565 If dc2 = 6 Then Call letter6
2566 If dc2 = 7 Then Call letter7
2567 If dc2 = 8 Then Call letter8
2568 Let x = 580: Let y = 220
2569 If dc4 = 1 Then Call letterA
2570 If dc4 = 2 Then Call letterB
2571 If dc4 = 3 Then Call letterC
2572 If dc4 = 4 Then Call letterD
2573 If dc4 = 5 Then Call letterE
2574 If dc4 = 6 Then Call letterF
2575 If dc4 = 7 Then Call letterG
2576 If dc4 = 8 Then Call letterH
2577 Let x = 580: Let y = 280
2578 If dc5 = 1 Then Call letter1
2579 If dc5 = 2 Then Call letter2
2580 If dc5 = 3 Then Call letter3
2581 If dc5 = 4 Then Call letter4
2582 If dc5 = 5 Then Call letter5
2583 If dc5 = 6 Then Call letter6
2584 If dc5 = 7 Then Call letter7
2585 If dc5 = 8 Then Call letter8
2586 Let x = (dc1 * 40) + 120: Let y = Abs((dc2 * 40) - 480) - 80
2588 If dc3 = 1 Then Call king
2589 If dc3 = 2 Then Call queen
2590 If dc3 = 3 Then Call bishop
2591 If dc3 = 4 Then Call knight
2592 If dc3 = 5 Then Call rook
2593 If dc3 = 6 Then Call checker
2594 Let x = (dc4 * 40) + 120: Let y = Abs((dc5 * 40) - 480) - 80
2596 If dc6 = 1 Then Call king
2597 If dc6 = 2 Then Call queen
2598 If dc6 = 3 Then Call bishop
2599 If dc6 = 4 Then Call knight
2600 If dc6 = 5 Then Call rook
2601 If dc6 = 6 Then Call checker
2619 Let count = 0: Let index = 0
2620 Let dc1 = Int(Rnd * 3 + 4)
2621 Let dc2 = Int(Rnd * 3 + 1)
2623 Let dc4 = Int(Rnd * 3 + 4)
2624 Let dc5 = Int(Rnd * 3 + 8)
2626 Let w1 = xiabo(dc2, dc1): Let b1 = xiabo(dc5, dc4)
2629 Let count = count + 1
2630 Let dc1 = Int(Rnd * 3 + 4)
2631 Let dc2 = Int(Rnd * 3 + 1)
2632 Let dc4 = Int(Rnd * 3 + 4)
2633 Let dc5 = Int(Rnd * 3 + 8)
2634 Let w1 = xiabo(dc2, dc1): Let b1 = xiabo(dc5, dc4)
2635 If count > 8000 Then Exit Do
2638 Let w1 = xiabo(dc2, dc1): Let b1 = xiabo(dc5, dc4)
2639 Let fw1x = dc1: Let fw1y = dc2: Let fb1x = dc4: Let fb1y = dc5
2640 Let fw1 = dc3: Let fb1 = dc6
2642 Let x = 20: Let y = 160: Let cf = 15
2643 If dc3 = 1 Then Call king
2644 If dc3 = 2 Then Call queen
2645 If dc3 = 3 Then Call bishop
2646 If dc3 = 4 Then Call knight
2647 If dc3 = 5 Then Call rook
2648 If dc3 = 6 Then Call cannon
2649 If dc3 = 7 Then Call pawn
2650 Let x = 580: Let y = 160: Let cf = 0
2651 If dc6 = 1 Then Call king
2652 If dc6 = 2 Then Call queen
2653 If dc6 = 3 Then Call bishop
2654 If dc6 = 4 Then Call knight
2655 If dc6 = 5 Then Call rook
2656 If dc6 = 6 Then Call cannon
2657 If dc6 = 7 Then Call pawn
2658 Let x = 20: Let y = 220
2659 If dc1 = 1 Then Call letterA
2660 If dc1 = 2 Then Call letterB
2661 If dc1 = 3 Then Call letterC
2662 If dc1 = 4 Then Call letterD
2663 If dc1 = 5 Then Call letterE
2664 If dc1 = 6 Then Call letterF
2665 If dc1 = 7 Then Call letterG
2666 If dc1 = 8 Then Call letterH
2667 If dc1 = 9 Then Call letterI
2668 Let x = 20: Let y = 280
2669 If dc2 = 1 Then Call letter1
2670 If dc2 = 2 Then Call letter2
2671 If dc2 = 3 Then Call letter3
2672 If dc2 = 4 Then Call letter4
2673 If dc2 = 5 Then Call letter5
2674 If dc2 = 6 Then Call letter6
2675 If dc2 = 7 Then Call letter7
2676 If dc2 = 8 Then Call letter8
2677 If dc2 = 9 Then Call letter9
2678 If dc2 = 10 Then Call letter0
2679 Let x = 580: Let y = 220
2680 If dc4 = 1 Then Call letterA
2681 If dc4 = 2 Then Call letterB
2682 If dc4 = 3 Then Call letterC
2683 If dc4 = 4 Then Call letterD
2684 If dc4 = 5 Then Call letterE
2685 If dc4 = 6 Then Call letterF
2686 If dc4 = 7 Then Call letterG
2687 If dc4 = 8 Then Call letterH
2688 If dc4 = 9 Then Call letterI
2689 Let x = 580: Let y = 280
2690 If dc5 = 1 Then Call letter1
2691 If dc5 = 2 Then Call letter2
2692 If dc5 = 3 Then Call letter3
2693 If dc5 = 4 Then Call letter4
2694 If dc5 = 5 Then Call letter5
2695 If dc5 = 6 Then Call letter6
2696 If dc5 = 7 Then Call letter7
2697 If dc5 = 8 Then Call letter8
2698 If dc5 = 9 Then Call letter9
2699 If dc5 = 10 Then Call letter0
2700 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 40
2701 Let cf = 15: Call king
2702 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 40
2703 Let cf = 0: Call king
2719 Let count = 0: Let index = 0
2720 Let dc1 = Int(Rnd * 9 + 1)
2721 Let dc2 = Int(Rnd * 10 + 1)
2722 Let dc3 = Int(Rnd * 6 + 2)
2723 Let dc4 = Int(Rnd * 9 + 1)
2724 Let dc5 = Int(Rnd * 10 + 1)
2725 Let dc6 = Int(Rnd * 6 + 2)
2726 Let w2 = xiabo(dc2, dc1): Let b2 = xiabo(dc5, dc4)
2733 Let dc1 = Int(Rnd * 3 + 4)
2734 Let dc2 = Int(Rnd * 3 + 1)
2736 Let count = count + 1
2737 Let index = Int(Rnd * 5 + 1)
2758 Let w2 = xiabo(dc2, dc1)
2759 If count > 8000 Then Exit Do
2760 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or w2 Mod 2 <> 0
2763 Let dc1 = Int(Rnd * 9 + 1)
2764 Let dc2 = Int(Rnd * 5 + 1)
2766 Let count = count + 1
2767 Let index = Int(Rnd * 7 + 1)
2796 Let w2 = xiabo(dc2, dc1)
2797 If count > 8000 Then Exit Do
2798 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2802 Let count = count + 1
2803 Let dc1 = Int(Rnd * 9 + 1)
2804 Let dc2 = Int(Rnd * 10 + 1)
2805 Let w2 = xiabo(dc2, dc1)
2806 If count > 8000 Then Exit Do
2807 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2811 Let count = count + 1
2812 Let dc1 = Int(Rnd * 9 + 1)
2813 Let dc2 = Int(Rnd * 10 + 1)
2814 Let fw2x = dc1: Let fw2y = dc2
2815 Let w2 = xiabo(dc2, dc1)
2816 If count > 8000 Then Exit Do
2817 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2821 Let count = count + 1
2822 Let dc1 = Int(Rnd * 9 + 1)
2823 Let dc2 = Int(Rnd * 10 + 1)
2824 Let fw2x = dc1: Let fw2y = dc2
2825 Let w2 = xiabo(dc2, dc1)
2826 If count > 8000 Then Exit Do
2827 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2830 Let count = count + 1
2831 Let dc1 = Int(Rnd * 9 + 1)
2832 Let dc2 = Int(Rnd * 10 + 1)
2833 Let w2 = xiabo(dc2, dc1)
2834 If count > 8000 Then Exit Do
2835 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc2 < 4 Or dc2 > 7
2842 Let dc4 = Int(Rnd * 3 + 4)
2843 Let dc5 = Int(Rnd * 3 + 8)
2845 Let count = count + 1
2846 Let index = Int(Rnd * 5 + 1)
2867 Let b2 = xiabo(dc5, dc4)
2868 If count > 8000 Then Exit Do
2869 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or b2 Mod 2 = 0
2872 Let dc4 = Int(Rnd * 9 + 1)
2873 Let dc5 = Int(Rnd * 5 + 6)
2875 Let count = count + 1
2876 Let index = Int(Rnd * 7 + 1)
2905 Let b2 = xiabo(dc5, dc4)
2906 If count > 8000 Then Exit Do
2907 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or b2
2911 Let count = count + 1
2912 Let dc4 = Int(Rnd * 9 + 1)
2913 Let dc5 = Int(Rnd * 10 + 1)
2914 Let b2 = xiabo(dc5, dc4)
2915 If count > 8000 Then Exit Do
2916 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2920 Let count = count + 1
2921 Let dc4 = Int(Rnd * 9 + 1)
2922 Let dc5 = Int(Rnd * 10 + 1)
2923 Let fb2x = dc4: Let fb2y = dc5
2924 Let b2 = xiabo(dc5, dc4)
2925 If count > 8000 Then Exit Do
2926 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2930 Let count = count + 1
2931 Let dc4 = Int(Rnd * 9 + 1)
2932 Let dc5 = Int(Rnd * 10 + 1)
2933 Let fb2x = dc4: Let fb2y = dc5
2934 Let b2 = xiabo(dc5, dc4)
2935 If count > 8000 Then Exit Do
2936 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
2939 Let count = count + 1
2940 Let dc4 = Int(Rnd * 9 + 1)
2941 Let dc5 = Int(Rnd * 10 + 1)
2942 Let b2 = xiabo(dc5, dc4)
2943 If count > 8000 Then Exit Do
2944 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc5 < 3 Or dc5 > 8
2947 Let w2 = xiabo(dc2, dc1): Let b2 = xiabo(dc5, dc4)
2948 Let fw2x = dc1: Let fw2y = dc2: Let fb2x = dc4: Let fb2y = dc5
2949 Let fw2 = dc3: Let fb2 = dc6
2951 Let x = 20: Let y = 160: Let cf = 15
2952 If dc3 = 1 Then Call king
2953 If dc3 = 2 Then Call queen
2954 If dc3 = 3 Then Call bishop
2955 If dc3 = 4 Then Call knight
2956 If dc3 = 5 Then Call rook
2957 If dc3 = 6 Then Call cannon
2958 If dc3 = 7 Then Call pawn
2959 Let x = 580: Let y = 160: Let cf = 0
2960 If dc6 = 1 Then Call king
2961 If dc6 = 2 Then Call queen
2962 If dc6 = 3 Then Call bishop
2963 If dc6 = 4 Then Call knight
2964 If dc6 = 5 Then Call rook
2965 If dc6 = 6 Then Call cannon
2966 If dc6 = 7 Then Call pawn
2967 Let x = 20: Let y = 220
2968 If dc1 = 1 Then Call letterA
2969 If dc1 = 2 Then Call letterB
2970 If dc1 = 3 Then Call letterC
2971 If dc1 = 4 Then Call letterD
2972 If dc1 = 5 Then Call letterE
2973 If dc1 = 6 Then Call letterF
2974 If dc1 = 7 Then Call letterG
2975 If dc1 = 8 Then Call letterH
2976 If dc1 = 9 Then Call letterI
2977 Let x = 20: Let y = 280
2978 If dc2 = 1 Then Call letter1
2979 If dc2 = 2 Then Call letter2
2980 If dc2 = 3 Then Call letter3
2981 If dc2 = 4 Then Call letter4
2982 If dc2 = 5 Then Call letter5
2983 If dc2 = 6 Then Call letter6
2984 If dc2 = 7 Then Call letter7
2985 If dc2 = 8 Then Call letter8
2986 If dc2 = 9 Then Call letter9
2987 If dc2 = 10 Then Call letter0
2988 Let x = 580: Let y = 220
2989 If dc4 = 1 Then Call letterA
2990 If dc4 = 2 Then Call letterB
2991 If dc4 = 3 Then Call letterC
2992 If dc4 = 4 Then Call letterD
2993 If dc4 = 5 Then Call letterE
2994 If dc4 = 6 Then Call letterF
2995 If dc4 = 7 Then Call letterG
2996 If dc4 = 8 Then Call letterH
2997 If dc4 = 9 Then Call letterI
2998 Let x = 580: Let y = 280
2999 If dc5 = 1 Then Call letter1
3000 If dc5 = 2 Then Call letter2
3001 If dc5 = 3 Then Call letter3
3002 If dc5 = 4 Then Call letter4
3003 If dc5 = 5 Then Call letter5
3004 If dc5 = 6 Then Call letter6
3005 If dc5 = 7 Then Call letter7
3006 If dc5 = 8 Then Call letter8
3007 If dc5 = 9 Then Call letter9
3008 If dc5 = 10 Then Call letter0
3009 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 40
3011 If dc3 = 1 Then Call king
3012 If dc3 = 2 Then Call queen
3013 If dc3 = 3 Then Call bishop
3014 If dc3 = 4 Then Call knight
3015 If dc3 = 5 Then Call rook
3016 If dc3 = 6 Then Call cannon
3017 If dc3 = 7 Then Call pawn
3018 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 40
3020 If dc6 = 1 Then Call king
3021 If dc6 = 2 Then Call queen
3022 If dc6 = 3 Then Call bishop
3023 If dc6 = 4 Then Call knight
3024 If dc6 = 5 Then Call rook
3025 If dc6 = 6 Then Call cannon
3026 If dc6 = 7 Then Call pawn
3042 Let count = 0: Let index = 0
3043 Let dc1 = Int(Rnd * 9 + 1)
3044 Let dc2 = Int(Rnd * 10 + 1)
3045 Let dc3 = Int(Rnd * 6 + 2)
3046 Let dc4 = Int(Rnd * 9 + 1)
3047 Let dc5 = Int(Rnd * 10 + 1)
3048 Let dc6 = Int(Rnd * 6 + 2)
3049 Let w3 = xiabo(dc2, dc1): Let b3 = xiabo(dc5, dc4)
3055 Let indexw2 = indexw2 + 1
3056 Let dc1 = Int(Rnd * 3 + 4)
3057 Let dc2 = Int(Rnd * 3 + 1)
3059 Let count = count + 1
3060 Let index = Int(Rnd * 5 + 1)
3081 Let w3 = xiabo(dc2, dc1)
3082 If count > 8000 Then Exit Do
3083 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or w3 Mod 2 <> 0
3085 Let indexw3 = indexw3 + 1
3086 Let dc1 = Int(Rnd * 9 + 1)
3087 Let dc2 = Int(Rnd * 5 + 1)
3089 Let count = count + 1
3090 Let index = Int(Rnd * 7 + 1)
3119 Let w3 = xiabo(dc2, dc1)
3120 If count > 8000 Then Exit Do
3121 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3123 Let indexw4 = indexw4 + 1
3125 Let count = count + 1
3126 Let dc1 = Int(Rnd * 9 + 1)
3127 Let dc2 = Int(Rnd * 10 + 1)
3128 Let w3 = xiabo(dc2, dc1)
3129 If count > 8000 Then Exit Do
3130 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3132 Let indexw5 = indexw5 + 1
3134 Let count = count + 1
3135 Let dc1 = Int(Rnd * 9 + 1)
3136 Let dc2 = Int(Rnd * 10 + 1)
3137 Let fw3x = dc1: Let fw3y = dc2
3138 Let w3 = xiabo(dc2, dc1)
3139 If count > 8000 Then Exit Do
3140 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3142 Let indexw6 = indexw6 + 1
3144 Let count = count + 1
3145 Let dc1 = Int(Rnd * 9 + 1)
3146 Let dc2 = Int(Rnd * 10 + 1)
3147 Let fw3x = dc1: Let fw3y = dc2
3148 Let w3 = xiabo(dc2, dc1)
3149 If count > 8000 Then Exit Do
3150 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3153 Let count = count + 1
3154 Let dc1 = Int(Rnd * 9 + 1)
3155 Let dc2 = Int(Rnd * 10 + 1)
3156 Let w3 = xiabo(dc2, dc1)
3157 If count > 8000 Then Exit Do
3158 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc2 < 4 Or dc2 > 7
3164 Let indexb2 = indexb2 + 1
3165 Let dc4 = Int(Rnd * 3 + 4)
3166 Let dc5 = Int(Rnd * 3 + 8)
3168 Let count = count + 1
3169 Let index = Int(Rnd * 5 + 1)
3190 Let b3 = xiabo(dc5, dc4)
3191 If count > 8000 Then Exit Do
3192 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or b3 Mod 2 = 0
3194 Let indexb3 = indexb3 + 1
3195 Let dc4 = Int(Rnd * 9 + 1)
3196 Let dc5 = Int(Rnd * 5 + 6)
3198 Let count = count + 1
3199 Let index = Int(Rnd * 7 + 1)
3228 Let b3 = xiabo(dc5, dc4)
3229 If count > 8000 Then Exit Do
3230 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3232 Let indexb4 = indexb4 + 1
3234 Let count = count + 1
3235 Let dc4 = Int(Rnd * 9 + 1)
3236 Let dc5 = Int(Rnd * 10 + 1)
3237 Let b3 = xiabo(dc5, dc4)
3238 If count > 8000 Then Exit Do
3239 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3241 Let indexb5 = indexb5 + 1
3243 Let count = count + 1
3244 Let dc4 = Int(Rnd * 9 + 1)
3245 Let dc5 = Int(Rnd * 10 + 1)
3246 Let fb3x = dc4: Let fb3y = dc5
3247 Let b3 = xiabo(dc5, dc4)
3248 If count > 8000 Then Exit Do
3249 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3251 Let indexb6 = indexb6 + 1
3253 Let count = count + 1
3254 Let dc4 = Int(Rnd * 9 + 1)
3255 Let dc5 = Int(Rnd * 10 + 1)
3256 Let fb3x = dc4: Let fb3y = dc5
3257 Let b3 = xiabo(dc5, dc4)
3258 If count > 8000 Then Exit Do
3259 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
3262 Let count = count + 1
3263 Let dc4 = Int(Rnd * 9 + 1)
3264 Let dc5 = Int(Rnd * 10 + 1)
3265 Let b3 = xiabo(dc5, dc4)
3266 If count > 8000 Then Exit Do
3267 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc5 < 3 Or dc5 > 8
3270 Let w3 = xiabo(dc2, dc1): Let b3 = xiabo(dc5, dc4)
3271 Let fw3x = dc1: Let fw3y = dc2: Let fb3x = dc4: Let fb3y = dc5
3272 Let fw3 = dc3: Let fb3 = dc6
3274 Let x = 20: Let y = 160: Let cf = 15
3275 If dc3 = 1 Then Call king
3276 If dc3 = 2 Then Call queen
3277 If dc3 = 3 Then Call bishop
3278 If dc3 = 4 Then Call knight
3279 If dc3 = 5 Then Call rook
3280 If dc3 = 6 Then Call cannon
3281 If dc3 = 7 Then Call pawn
3282 Let x = 580: Let y = 160: Let cf = 0
3283 If dc6 = 1 Then Call king
3284 If dc6 = 2 Then Call queen
3285 If dc6 = 3 Then Call bishop
3286 If dc6 = 4 Then Call knight
3287 If dc6 = 5 Then Call rook
3288 If dc6 = 6 Then Call cannon
3289 If dc6 = 7 Then Call pawn
3290 Let x = 20: Let y = 220
3291 If dc1 = 1 Then Call letterA
3292 If dc1 = 2 Then Call letterB
3293 If dc1 = 3 Then Call letterC
3294 If dc1 = 4 Then Call letterD
3295 If dc1 = 5 Then Call letterE
3296 If dc1 = 6 Then Call letterF
3297 If dc1 = 7 Then Call letterG
3298 If dc1 = 8 Then Call letterH
3299 If dc1 = 9 Then Call letterI
3300 Let x = 20: Let y = 280
3301 If dc2 = 1 Then Call letter1
3302 If dc2 = 2 Then Call letter2
3303 If dc2 = 3 Then Call letter3
3304 If dc2 = 4 Then Call letter4
3305 If dc2 = 5 Then Call letter5
3306 If dc2 = 6 Then Call letter6
3307 If dc2 = 7 Then Call letter7
3308 If dc2 = 8 Then Call letter8
3309 If dc2 = 9 Then Call letter9
3310 If dc2 = 10 Then Call letter0
3311 Let x = 580: Let y = 220
3312 If dc4 = 1 Then Call letterA
3313 If dc4 = 2 Then Call letterB
3314 If dc4 = 3 Then Call letterC
3315 If dc4 = 4 Then Call letterD
3316 If dc4 = 5 Then Call letterE
3317 If dc4 = 6 Then Call letterF
3318 If dc4 = 7 Then Call letterG
3319 If dc4 = 8 Then Call letterH
3320 If dc4 = 9 Then Call letterI
3321 Let x = 580: Let y = 280
3322 If dc5 = 1 Then Call letter1
3323 If dc5 = 2 Then Call letter2
3324 If dc5 = 3 Then Call letter3
3325 If dc5 = 4 Then Call letter4
3326 If dc5 = 5 Then Call letter5
3327 If dc5 = 6 Then Call letter6
3328 If dc5 = 7 Then Call letter7
3329 If dc5 = 8 Then Call letter8
3330 If dc5 = 9 Then Call letter9
3331 If dc5 = 10 Then Call letter0
3332 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 40
3334 If dc3 = 1 Then Call king
3335 If dc3 = 2 Then Call queen
3336 If dc3 = 3 Then Call bishop
3337 If dc3 = 4 Then Call knight
3338 If dc3 = 5 Then Call rook
3339 If dc3 = 6 Then Call cannon
3340 If dc3 = 7 Then Call pawn
3341 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 40
3343 If dc6 = 1 Then Call king
3344 If dc6 = 2 Then Call queen
3345 If dc6 = 3 Then Call bishop
3346 If dc6 = 4 Then Call knight
3347 If dc6 = 5 Then Call rook
3348 If dc6 = 6 Then Call cannon
3349 If dc6 = 7 Then Call pawn
3365 Let count = 0: Let index = 0
3366 Let dc1 = Int(Rnd * 9 + 1)
3367 Let dc2 = Int(Rnd * 10 + 1)
3368 Let dc3 = Int(Rnd * 6 + 2)
3369 Let dc4 = Int(Rnd * 9 + 1)
3370 Let dc5 = Int(Rnd * 10 + 1)
3371 Let dc6 = Int(Rnd * 6 + 2)
3372 Let w4 = xiabo(dc2, dc1): Let b2 = xiabo(dc5, dc4)
3373 If indexw2 > 2 Or indexw3 > 2 Or indexw4 > 2 Or indexw5 > 2 Or indexw6 > 2 Then dc3 = 7
3374 If indexb2 > 2 Or indexb3 > 2 Or indexb4 > 2 Or indexb5 > 2 Or indexb6 > 2 Then dc6 = 7
3380 Let dc1 = Int(Rnd * 3 + 4)
3381 Let dc2 = Int(Rnd * 3 + 1)
3383 Let count = count + 1
3384 Let index = Int(Rnd * 5 + 1)
3405 Let w4 = xiabo(dc2, dc1)
3406 If count > 8000 Then Exit Do
3407 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or w4 Mod 2 <> 0
3409 Let dc1 = Int(Rnd * 9 + 1)
3410 Let dc2 = Int(Rnd * 5 + 1)
3412 Let count = count + 1
3413 Let index = Int(Rnd * 7 + 1)
3442 Let w4 = xiabo(dc2, dc1)
3443 If count > 8000 Then Exit Do
3444 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3447 Let count = count + 1
3448 Let dc1 = Int(Rnd * 9 + 1)
3449 Let dc2 = Int(Rnd * 10 + 1)
3450 Let w4 = xiabo(dc2, dc1)
3451 If count > 8000 Then Exit Do
3452 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3455 Let count = count + 1
3456 Let dc1 = Int(Rnd * 9 + 1)
3457 Let dc2 = Int(Rnd * 10 + 1)
3458 Let fw4x = dc1: Let fw4y = dc2
3459 Let w4 = xiabo(dc2, dc1)
3460 If count > 8000 Then Exit Do
3461 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3464 Let count = count + 1
3465 Let dc1 = Int(Rnd * 9 + 1)
3466 Let dc2 = Int(Rnd * 10 + 1)
3467 Let fw4x = dc1: Let fw4y = dc2
3468 Let w4 = xiabo(dc2, dc1)
3469 If count > 8000 Then Exit Do
3470 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3473 Let count = count + 1
3474 Let dc1 = Int(Rnd * 9 + 1)
3475 Let dc2 = Int(Rnd * 10 + 1)
3476 Let w4 = xiabo(dc2, dc1)
3477 If count > 8000 Then Exit Do
3478 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 < 3 Or dc2 > 8
3484 Let dc4 = Int(Rnd * 3 + 4)
3485 Let dc5 = Int(Rnd * 3 + 8)
3487 Let count = count + 1
3488 Let index = Int(Rnd * 5 + 1)
3509 Let b4 = xiabo(dc5, dc4)
3510 If count > 8000 Then Exit Do
3511 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or b4 Mod 2 = 0
3513 Let dc4 = Int(Rnd * 9 + 1)
3514 Let dc5 = Int(Rnd * 5 + 6)
3516 Let count = count + 1
3517 Let index = Int(Rnd * 7 + 1)
3546 Let b4 = xiabo(dc5, dc4)
3547 If count > 8000 Then Exit Do
3548 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3551 Let count = count + 1
3552 Let dc4 = Int(Rnd * 9 + 1)
3553 Let dc5 = Int(Rnd * 10 + 1)
3554 Let b4 = xiabo(dc5, dc4)
3555 If count > 8000 Then Exit Do
3556 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3559 Let count = count + 1
3560 Let dc4 = Int(Rnd * 9 + 1)
3561 Let dc5 = Int(Rnd * 10 + 1)
3562 Let fb4x = dc4: Let fb4y = dc5
3563 Let b4 = xiabo(dc5, dc4)
3564 If count > 8000 Then Exit Do
3565 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3568 Let count = count + 1
3569 Let dc4 = Int(Rnd * 9 + 1)
3570 Let dc5 = Int(Rnd * 10 + 1)
3571 Let fb4x = dc4: Let fb4y = dc5
3572 Let b4 = xiabo(dc5, dc4)
3573 If count > 8000 Then Exit Do
3574 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
3577 Let count = count + 1
3578 Let dc4 = Int(Rnd * 9 + 1)
3579 Let dc5 = Int(Rnd * 10 + 1)
3580 Let b4 = xiabo(dc5, dc4)
3581 If count > 8000 Then Exit Do
3582 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc5 < 3 Or dc5 > 8
3585 Let w4 = xiabo(dc2, dc1): Let b4 = xiabo(dc5, dc4)
3586 Let fw4x = dc1: Let fw4y = dc2: Let fb4x = dc4: Let fb4y = dc5
3587 Let fw4 = dc3: Let fb4 = dc6
3589 Let x = 20: Let y = 160: Let cf = 15
3590 If dc3 = 1 Then Call king
3591 If dc3 = 2 Then Call queen
3592 If dc3 = 3 Then Call bishop
3593 If dc3 = 4 Then Call knight
3594 If dc3 = 5 Then Call rook
3595 If dc3 = 6 Then Call cannon
3596 If dc3 = 7 Then Call pawn
3597 Let x = 580: Let y = 160: Let cf = 0
3598 If dc6 = 1 Then Call king
3599 If dc6 = 2 Then Call queen
3600 If dc6 = 3 Then Call bishop
3601 If dc6 = 4 Then Call knight
3602 If dc6 = 5 Then Call rook
3603 If dc6 = 6 Then Call cannon
3604 If dc6 = 7 Then Call pawn
3605 Let x = 20: Let y = 220
3606 If dc1 = 1 Then Call letterA
3607 If dc1 = 2 Then Call letterB
3608 If dc1 = 3 Then Call letterC
3609 If dc1 = 4 Then Call letterD
3610 If dc1 = 5 Then Call letterE
3611 If dc1 = 6 Then Call letterF
3612 If dc1 = 7 Then Call letterG
3613 If dc1 = 8 Then Call letterH
3614 If dc1 = 9 Then Call letterI
3615 Let x = 20: Let y = 280
3616 If dc2 = 1 Then Call letter1
3617 If dc2 = 2 Then Call letter2
3618 If dc2 = 3 Then Call letter3
3619 If dc2 = 4 Then Call letter4
3620 If dc2 = 5 Then Call letter5
3621 If dc2 = 6 Then Call letter6
3622 If dc2 = 7 Then Call letter7
3623 If dc2 = 8 Then Call letter8
3624 If dc2 = 9 Then Call letter9
3625 If dc2 = 10 Then Call letter0
3626 Let x = 580: Let y = 220
3627 If dc4 = 1 Then Call letterA
3628 If dc4 = 2 Then Call letterB
3629 If dc4 = 3 Then Call letterC
3630 If dc4 = 4 Then Call letterD
3631 If dc4 = 5 Then Call letterE
3632 If dc4 = 6 Then Call letterF
3633 If dc4 = 7 Then Call letterG
3634 If dc4 = 8 Then Call letterH
3635 If dc4 = 9 Then Call letterI
3636 Let x = 580: Let y = 280
3637 If dc5 = 1 Then Call letter1
3638 If dc5 = 2 Then Call letter2
3639 If dc5 = 3 Then Call letter3
3640 If dc5 = 4 Then Call letter4
3641 If dc5 = 5 Then Call letter5
3642 If dc5 = 6 Then Call letter6
3643 If dc5 = 7 Then Call letter7
3644 If dc5 = 8 Then Call letter8
3645 If dc5 = 9 Then Call letter9
3646 If dc5 = 10 Then Call letter0
3647 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 40
3649 If dc3 = 1 Then Call king
3650 If dc3 = 2 Then Call queen
3651 If dc3 = 3 Then Call bishop
3652 If dc3 = 4 Then Call knight
3653 If dc3 = 5 Then Call rook
3654 If dc3 = 6 Then Call cannon
3655 If dc3 = 7 Then Call pawn
3656 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 40
3658 If dc6 = 1 Then Call king
3659 If dc6 = 2 Then Call queen
3660 If dc6 = 3 Then Call bishop
3661 If dc6 = 4 Then Call knight
3662 If dc6 = 5 Then Call rook
3663 If dc6 = 6 Then Call cannon
3664 If dc6 = 7 Then Call pawn
3682 Let count = 0: Let index = 0
3683 Let dc1 = Int(Rnd * 9 + 1)
3684 Let dc2 = Int(Rnd * 9 + 1)
3686 Let dc4 = Int(Rnd * 9 + 1)
3687 Let dc5 = Int(Rnd * 9 + 1)
3689 Let w1 = shobo(dc2, dc1): Let b1 = shobo(dc5, dc4)
3692 Let count = count + 1
3693 Let dc1 = Int(Rnd * 9 + 1)
3694 Let dc2 = Int(Rnd * 9 + 1)
3695 Let dc4 = Int(Rnd * 9 + 1)
3696 Let dc5 = Int(Rnd * 9 + 1)
3697 Let w1 = shobo(dc2, dc1): Let b1 = shobo(dc5, dc4)
3698 If count > 8000 Then Exit Do
3699 Loop While Abs(w1 - b1) < 11
3701 Let w1 = shobo(dc2, dc1): Let b1 = shobo(dc5, dc4)
3702 Let fw1x = dc1: Let fw1y = dc2: Let fb1x = dc4: Let fb1y = dc5
3703 Let fw1 = dc3: Let fb1 = dc6
3705 Let x = 20: Let y = 160: Let cf = 15
3706 If dc3 = 1 Then Call king
3707 If dc3 = 2 Then Call queen
3708 If dc3 = 3 Then Call general
3709 If dc3 = 4 Then Call bishop
3710 If dc3 = 5 Then Call knight
3711 If dc3 = 6 Then Call rook
3712 If dc3 = 7 Then Call lance
3713 If dc3 = 8 Then Call pawn
3714 If dc3 = 9 Then Call tokin
3715 If dc3 = 10 Then Call dragon
3716 If dc3 = 11 Then Call horse
3717 Let x = 580: Let y = 160: Let cf = 0
3718 If dc6 = 1 Then Call king
3719 If dc6 = 2 Then Call queen
3720 If dc6 = 3 Then Call general
3721 If dc6 = 4 Then Call bishop
3722 If dc6 = 5 Then Call knight
3723 If dc6 = 6 Then Call rook
3724 If dc6 = 7 Then Call lance
3725 If dc6 = 8 Then Call pawn
3726 If dc6 = 9 Then Call tokin
3727 If dc6 = 10 Then Call dragon
3728 If dc6 = 11 Then Call horse
3729 Let x = 20: Let y = 220
3730 If dc1 = 1 Then Call letterA
3731 If dc1 = 2 Then Call letterB
3732 If dc1 = 3 Then Call letterC
3733 If dc1 = 4 Then Call letterD
3734 If dc1 = 5 Then Call letterE
3735 If dc1 = 6 Then Call letterF
3736 If dc1 = 7 Then Call letterG
3737 If dc1 = 8 Then Call letterH
3738 If dc1 = 9 Then Call letterI
3739 Let x = 20: Let y = 280
3740 If dc2 = 1 Then Call letter1
3741 If dc2 = 2 Then Call letter2
3742 If dc2 = 3 Then Call letter3
3743 If dc2 = 4 Then Call letter4
3744 If dc2 = 5 Then Call letter5
3745 If dc2 = 6 Then Call letter6
3746 If dc2 = 7 Then Call letter7
3747 If dc2 = 8 Then Call letter8
3748 If dc2 = 9 Then Call letter9
3749 If dc2 = 10 Then Call letter0
3750 Let x = 580: Let y = 220
3751 If dc4 = 1 Then Call letterA
3752 If dc4 = 2 Then Call letterB
3753 If dc4 = 3 Then Call letterC
3754 If dc4 = 4 Then Call letterD
3755 If dc4 = 5 Then Call letterE
3756 If dc4 = 6 Then Call letterF
3757 If dc4 = 7 Then Call letterG
3758 If dc4 = 8 Then Call letterH
3759 If dc4 = 9 Then Call letterI
3760 Let x = 580: Let y = 280
3761 If dc5 = 1 Then Call letter1
3762 If dc5 = 2 Then Call letter2
3763 If dc5 = 3 Then Call letter3
3764 If dc5 = 4 Then Call letter4
3765 If dc5 = 5 Then Call letter5
3766 If dc5 = 6 Then Call letter6
3767 If dc5 = 7 Then Call letter7
3768 If dc5 = 8 Then Call letter8
3769 If dc5 = 9 Then Call letter9
3770 If dc5 = 10 Then Call letter0
3771 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 60
3772 Let cf = 15: Call king
3773 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 60
3774 Let cf = 0: Call king
3790 Let count = 0: Let index = 0
3791 Let dc1 = Int(Rnd * 9 + 1)
3792 Let dc2 = Int(Rnd * 9 + 1)
3793 Let dc3 = Int(Rnd * 10 + 2)
3794 Let dc4 = Int(Rnd * 9 + 1)
3795 Let dc5 = Int(Rnd * 9 + 1)
3796 Let dc6 = Int(Rnd * 10 + 2)
3797 Let w2 = shobo(dc2, dc1): Let b2 = shobo(dc5, dc4)
3804 Let count = count + 1
3805 Let dc1 = Int(Rnd * 9 + 1)
3806 Let dc2 = Int(Rnd * 9 + 1)
3807 Let w2 = shobo(dc2, dc1)
3808 If count > 8000 Then Exit Do
3809 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3813 Let count = count + 1
3814 Let dc1 = Int(Rnd * 9 + 1)
3815 Let dc2 = Int(Rnd * 9 + 1)
3816 Let w2 = shobo(dc2, dc1)
3817 If count > 8000 Then Exit Do
3818 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3822 Let count = count + 1
3823 Let dc1 = Int(Rnd * 9 + 1)
3824 Let dc2 = Int(Rnd * 9 + 1)
3825 Let w2 = shobo(dc2, dc1)
3826 If count > 8000 Then Exit Do
3827 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3831 Let count = count + 1
3832 Let dc1 = Int(Rnd * 9 + 1)
3833 Let dc2 = Int(Rnd * 9 + 1)
3834 Let fw2x = dc1: Let fw2y = dc2
3835 Let w2 = shobo(dc2, dc1)
3836 If count > 8000 Then Exit Do
3837 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3841 Let count = count + 1
3842 Let dc1 = Int(Rnd * 9 + 1)
3843 Let dc2 = Int(Rnd * 9 + 1)
3844 Let fw2x = dc1: Let fw2y = dc2
3845 Let w2 = shobo(dc2, dc1)
3846 If count > 8000 Then Exit Do
3847 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3850 Let index = Int(Rnd * 2 + 1)
3851 If index = 1 Then Let dc1 = 1 Else Let dc1 = 9
3852 If dc1 = 1 Then Let indexw71 = 1 Else Let indexw72 = 1
3854 Let count = count + 1
3855 Let dc2 = Int(Rnd * 9 + 1)
3856 Let w2 = shobo(dc2, dc1)
3857 If count > 8000 Then Exit Do
3858 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3861 Let count = count + 1
3862 Let dc1 = Int(Rnd * 9 + 1)
3863 Let dc2 = Int(Rnd * 9 + 1)
3864 Let w2 = shobo(dc2, dc1)
3865 If count > 8000 Then Exit Do
3866 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc2 < 3 Or dc2 > 7
3870 Let count = count + 1
3871 Let dc1 = Int(Rnd * 9 + 1)
3872 Let dc2 = Int(Rnd * 9 + 1)
3873 Let w2 = shobo(dc2, dc1)
3874 If count > 8000 Then Exit Do
3875 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3879 Let count = count + 1
3880 Let dc1 = Int(Rnd * 9 + 1)
3881 Let dc2 = Int(Rnd * 9 + 1)
3882 Let w2 = shobo(dc2, dc1)
3883 If count > 8000 Then Exit Do
3884 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3887 Let count = count + 1
3888 Let dc1 = Int(Rnd * 9 + 1)
3889 Let dc2 = Int(Rnd * 9 + 1)
3890 Let w2 = shobo(dc2, dc1)
3891 If count > 8000 Then Exit Do
3892 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3899 Let count = count + 1
3900 Let dc4 = Int(Rnd * 9 + 1)
3901 Let dc5 = Int(Rnd * 9 + 1)
3902 Let b2 = shobo(dc5, dc4)
3903 If count > 8000 Then Exit Do
3904 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3908 Let count = count + 1
3909 Let dc4 = Int(Rnd * 9 + 1)
3910 Let dc5 = Int(Rnd * 9 + 1)
3911 Let b2 = shobo(dc5, dc4)
3912 If count > 8000 Then Exit Do
3913 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3917 Let count = count + 1
3918 Let dc4 = Int(Rnd * 9 + 1)
3919 Let dc5 = Int(Rnd * 9 + 1)
3920 Let b2 = shobo(dc5, dc4)
3921 If count > 8000 Then Exit Do
3922 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3926 Let count = count + 1
3927 Let dc4 = Int(Rnd * 9 + 1)
3928 Let dc5 = Int(Rnd * 9 + 1)
3929 Let fb2x = dc4: Let fb2y = dc5
3930 Let b2 = shobo(dc5, dc4)
3931 If count > 8000 Then Exit Do
3932 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3936 Let count = count + 1
3937 Let dc4 = Int(Rnd * 9 + 1)
3938 Let dc5 = Int(Rnd * 9 + 1)
3939 Let fb2x = dc4: Let fb2y = dc5
3940 Let b2 = shobo(dc5, dc4)
3941 If count > 8000 Then Exit Do
3942 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3945 Let index = Int(Rnd * 2 + 1)
3946 If index = 1 Then Let dc4 = 1 Else Let dc4 = 9
3947 If dc4 = 1 Then Let indexb71 = 1 Else Let indexb72 = 1
3949 Let count = count + 1
3950 Let dc5 = Int(Rnd * 9 + 1)
3951 Let b2 = shobo(dc5, dc4)
3952 If count > 8000 Then Exit Do
3953 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3956 Let count = count + 1
3957 Let dc4 = Int(Rnd * 9 + 1)
3958 Let dc5 = Int(Rnd * 9 + 1)
3959 Let b2 = shobo(dc5, dc4)
3960 If count > 8000 Then Exit Do
3961 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1 Or dc5 < 3 Or dc5 > 7
3965 Let count = count + 1
3966 Let dc4 = Int(Rnd * 9 + 1)
3967 Let dc5 = Int(Rnd * 9 + 1)
3968 Let b2 = shobo(dc5, dc4)
3969 If count > 8000 Then Exit Do
3970 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3974 Let count = count + 1
3975 Let dc4 = Int(Rnd * 9 + 1)
3976 Let dc5 = Int(Rnd * 9 + 1)
3977 Let b2 = shobo(dc5, dc4)
3978 If count > 8000 Then Exit Do
3979 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3982 Let count = count + 1
3983 Let dc4 = Int(Rnd * 9 + 1)
3984 Let dc5 = Int(Rnd * 9 + 1)
3985 Let b2 = shobo(dc5, dc4)
3986 If count > 8000 Then Exit Do
3987 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
3990 Let w2 = shobo(dc2, dc1): Let b2 = shobo(dc5, dc4)
3991 Let fw2x = dc1: Let fw2y = dc2: Let fb2x = dc4: Let fb2y = dc5
3992 Let fw2 = dc3: Let fb2 = dc6
3994 Let x = 20: Let y = 160: Let cf = 15
3995 If dc3 = 1 Then Call king
3996 If dc3 = 2 Then Call queen
3997 If dc3 = 3 Then Call general
3998 If dc3 = 4 Then Call bishop
3999 If dc3 = 5 Then Call knight
4000 If dc3 = 6 Then Call rook
4001 If dc3 = 7 Then Call lance
4002 If dc3 = 8 Then Call pawn
4003 If dc3 = 9 Then Call horse
4004 If dc3 = 10 Then Call dragon
4005 If dc3 = 11 Then Call tokin
4006 Let x = 580: Let y = 160: Let cf = 0
4007 If dc6 = 1 Then Call king
4008 If dc6 = 2 Then Call queen
4009 If dc6 = 3 Then Call general
4010 If dc6 = 4 Then Call bishop
4011 If dc6 = 5 Then Call knight
4012 If dc6 = 6 Then Call rook
4013 If dc6 = 7 Then Call lance
4014 If dc6 = 8 Then Call pawn
4015 If dc6 = 9 Then Call horse
4016 If dc6 = 10 Then Call dragon
4017 If dc6 = 11 Then Call tokin
4018 Let x = 20: Let y = 220
4019 If dc1 = 1 Then Call letterA
4020 If dc1 = 2 Then Call letterB
4021 If dc1 = 3 Then Call letterC
4022 If dc1 = 4 Then Call letterD
4023 If dc1 = 5 Then Call letterE
4024 If dc1 = 6 Then Call letterF
4025 If dc1 = 7 Then Call letterG
4026 If dc1 = 8 Then Call letterH
4027 If dc1 = 9 Then Call letterI
4028 Let x = 20: Let y = 280
4029 If dc2 = 1 Then Call letter1
4030 If dc2 = 2 Then Call letter2
4031 If dc2 = 3 Then Call letter3
4032 If dc2 = 4 Then Call letter4
4033 If dc2 = 5 Then Call letter5
4034 If dc2 = 6 Then Call letter6
4035 If dc2 = 7 Then Call letter7
4036 If dc2 = 8 Then Call letter8
4037 If dc2 = 9 Then Call letter9
4038 Let x = 580: Let y = 220
4039 If dc4 = 1 Then Call letterA
4040 If dc4 = 2 Then Call letterB
4041 If dc4 = 3 Then Call letterC
4042 If dc4 = 4 Then Call letterD
4043 If dc4 = 5 Then Call letterE
4044 If dc4 = 6 Then Call letterF
4045 If dc4 = 7 Then Call letterG
4046 If dc4 = 8 Then Call letterH
4047 If dc4 = 9 Then Call letterI
4048 Let x = 580: Let y = 280
4049 If dc5 = 1 Then Call letter1
4050 If dc5 = 2 Then Call letter2
4051 If dc5 = 3 Then Call letter3
4052 If dc5 = 4 Then Call letter4
4053 If dc5 = 5 Then Call letter5
4054 If dc5 = 6 Then Call letter6
4055 If dc5 = 7 Then Call letter7
4056 If dc5 = 8 Then Call letter8
4057 If dc5 = 9 Then Call letter9
4058 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 60
4060 If dc3 = 1 Then Call king
4061 If dc3 = 2 Then Call queen
4062 If dc3 = 3 Then Call general
4063 If dc3 = 4 Then Call bishop
4064 If dc3 = 5 Then Call knight
4065 If dc3 = 6 Then Call rook
4066 If dc3 = 7 Then Call lance
4067 If dc3 = 8 Then Call pawn
4068 If dc3 = 9 Then Call horse
4069 If dc3 = 10 Then Call dragon
4070 If dc3 = 11 Then Call tokin
4071 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 60
4073 If dc6 = 1 Then Call king
4074 If dc6 = 2 Then Call queen
4075 If dc6 = 3 Then Call general
4076 If dc6 = 4 Then Call bishop
4077 If dc6 = 5 Then Call knight
4078 If dc6 = 6 Then Call rook
4079 If dc6 = 7 Then Call lance
4080 If dc6 = 8 Then Call pawn
4081 If dc6 = 9 Then Call horse
4082 If dc6 = 10 Then Call dragon
4083 If dc6 = 11 Then Call tokin
4099 Let count = 0: Let index = 0
4100 Let dc1 = Int(Rnd * 9 + 1)
4101 Let dc2 = Int(Rnd * 9 + 1)
4102 Let dc3 = Int(Rnd * 10 + 2)
4103 Let dc4 = Int(Rnd * 9 + 1)
4104 Let dc5 = Int(Rnd * 9 + 1)
4105 Let dc6 = Int(Rnd * 10 + 2)
4106 Let w3 = shobo(dc2, dc1): Let b3 = shobo(dc5, dc4)
4107 If dc3 = 4 Then Let indexw4 = indexw4 + 1
4108 If dc3 = 6 Then Let indexw6 = indexw6 + 1
4109 If dc3 = 9 Then Let indexw9 = indexw9 + 1
4110 If dc3 = 10 Then Let indexw10 = indexw10 + 1
4113 Let indexw4 = indexw4 - 1
4117 Let indexw6 = indexw4 - 1
4121 Let indexw9 = indexw4 - 1
4123 If indexw10 > 1 Then
4125 Let indexw10 = indexw4 - 1
4129 Let indexb4 = indexb4 - 1
4133 Let indexb6 = indexb4 - 1
4137 Let indexb9 = indexb4 - 1
4139 If indexb10 > 1 Then
4141 Let indexb10 = indexb4 - 1
4149 Let count = count + 1
4150 Let dc1 = Int(Rnd * 9 + 1)
4151 Let dc2 = Int(Rnd * 9 + 1)
4152 Let w3 = shobo(dc2, dc1)
4153 If count > 8000 Then Exit Do
4154 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4156 Let indexw3 = indexw3 + 1
4158 Let count = count + 1
4159 Let dc1 = Int(Rnd * 9 + 1)
4160 Let dc2 = Int(Rnd * 9 + 1)
4161 Let w3 = shobo(dc2, dc1)
4162 If count > 8000 Then Exit Do
4163 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4165 Let indexw4 = indexw4 + 1
4167 Let count = count + 1
4168 Let dc1 = Int(Rnd * 9 + 1)
4169 Let dc2 = Int(Rnd * 9 + 1)
4170 Let w3 = shobo(dc2, dc1)
4171 If count > 8000 Then Exit Do
4172 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4174 Let indexw5 = indexw5 + 1
4176 Let count = count + 1
4177 Let dc1 = Int(Rnd * 9 + 1)
4178 Let dc2 = Int(Rnd * 9 + 1)
4179 Let fw2x = dc1: Let fw2y = dc2
4180 Let w3 = shobo(dc2, dc1)
4181 If count > 8000 Then Exit Do
4182 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4184 Let indexw6 = indexw6 + 1
4186 Let count = count + 1
4187 Let dc1 = Int(Rnd * 9 + 1)
4188 Let dc2 = Int(Rnd * 9 + 1)
4189 Let fw2x = dc1: Let fw2y = dc2
4190 Let w3 = shobo(dc2, dc1)
4191 If count > 8000 Then Exit Do
4192 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4194 Let indexw7 = indexw7 + 1
4195 Let index = Int(Rnd * 2 + 1)
4196 If index = 1 Then Let dc1 = 1 Else Let dc1 = 9
4197 If indexw71 = 1 Then dc1 = 9
4198 If indexw72 = 1 Then dc1 = 1
4200 Let count = count + 1
4201 Let dc2 = Int(Rnd * 9 + 1)
4202 Let w3 = shobo(dc2, dc1)
4203 If count > 8000 Then Exit Do
4204 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4207 Let count = count + 1
4208 Let dc1 = Int(Rnd * 9 + 1)
4209 Let dc2 = Int(Rnd * 9 + 1)
4210 Let w3 = shobo(dc2, dc1)
4211 If count > 8000 Then Exit Do
4212 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc2 < 3 Or dc2 > 7
4214 Let indexw9 = indexw9 + 1
4216 Let count = count + 1
4217 Let dc1 = Int(Rnd * 9 + 1)
4218 Let dc2 = Int(Rnd * 9 + 1)
4219 Let w3 = shobo(dc2, dc1)
4220 If count > 8000 Then Exit Do
4221 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4223 Let indexw10 = indexw10 + 1
4225 Let count = count + 1
4226 Let dc1 = Int(Rnd * 9 + 1)
4227 Let dc2 = Int(Rnd * 9 + 1)
4228 Let w3 = shobo(dc2, dc1)
4229 If count > 8000 Then Exit Do
4230 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4233 Let count = count + 1
4234 Let dc1 = Int(Rnd * 9 + 1)
4235 Let dc2 = Int(Rnd * 9 + 1)
4236 Let w3 = shobo(dc2, dc1)
4237 If count > 8000 Then Exit Do
4238 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4245 Let count = count + 1
4246 Let dc4 = Int(Rnd * 9 + 1)
4247 Let dc5 = Int(Rnd * 9 + 1)
4248 Let b3 = shobo(dc5, dc4)
4249 If count > 8000 Then Exit Do
4250 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4252 Let indexb3 = indexb3 + 1
4254 Let count = count + 1
4255 Let dc4 = Int(Rnd * 9 + 1)
4256 Let dc5 = Int(Rnd * 9 + 1)
4257 Let b3 = shobo(dc5, dc4)
4258 If count > 8000 Then Exit Do
4259 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4261 Let indexb4 = indexb4 + 1
4263 Let count = count + 1
4264 Let dc4 = Int(Rnd * 9 + 1)
4265 Let dc5 = Int(Rnd * 9 + 1)
4266 Let b3 = shobo(dc5, dc4)
4267 If count > 8000 Then Exit Do
4268 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4270 Let indexb5 = indexb5 + 1
4272 Let count = count + 1
4273 Let dc4 = Int(Rnd * 9 + 1)
4274 Let dc5 = Int(Rnd * 9 + 1)
4275 Let fb2x = dc4: Let fb2y = dc5
4276 Let b3 = shobo(dc5, dc4)
4277 If count > 8000 Then Exit Do
4278 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4280 Let indexb6 = indexb6 + 1
4282 Let count = count + 1
4283 Let dc4 = Int(Rnd * 9 + 1)
4284 Let dc5 = Int(Rnd * 9 + 1)
4285 Let fb2x = dc4: Let fb2y = dc5
4286 Let b3 = shobo(dc5, dc4)
4287 If count > 8000 Then Exit Do
4288 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4290 Let indexb7 = indexb7 + 1
4291 Let index = Int(Rnd * 2 + 1)
4292 If index = 1 Then Let dc4 = 1 Else Let dc4 = 9
4293 If indexb71 = 1 Then dc4 = 9
4294 If indexb72 = 1 Then dc4 = 1
4296 Let count = count + 1
4297 Let dc5 = Int(Rnd * 9 + 1)
4298 Let b3 = shobo(dc5, dc4)
4299 If count > 8000 Then Exit Do
4300 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4303 Let count = count + 1
4304 Let dc4 = Int(Rnd * 9 + 1)
4305 Let dc5 = Int(Rnd * 9 + 1)
4306 Let b3 = shobo(dc5, dc4)
4307 If count > 8000 Then Exit Do
4308 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2 Or dc5 < 3 Or dc5 > 7
4310 Let indexb9 = indexb9 + 1
4312 Let count = count + 1
4313 Let dc4 = Int(Rnd * 9 + 1)
4314 Let dc5 = Int(Rnd * 9 + 1)
4315 Let b3 = shobo(dc5, dc4)
4316 If count > 8000 Then Exit Do
4317 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4319 Let indexb10 = indexb10 + 1
4321 Let count = count + 1
4322 Let dc4 = Int(Rnd * 9 + 1)
4323 Let dc5 = Int(Rnd * 9 + 1)
4324 Let b3 = shobo(dc5, dc4)
4325 If count > 8000 Then Exit Do
4326 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4329 Let count = count + 1
4330 Let dc4 = Int(Rnd * 9 + 1)
4331 Let dc5 = Int(Rnd * 9 + 1)
4332 Let b3 = shobo(dc5, dc4)
4333 If count > 8000 Then Exit Do
4334 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
4337 Let w3 = shobo(dc2, dc1): Let b3 = shobo(dc5, dc4)
4338 Let fw3x = dc1: Let fw3y = dc2: Let fb3x = dc4: Let fb3y = dc5
4339 Let fw3 = dc3: Let fb3 = dc6
4341 Let x = 20: Let y = 160: Let cf = 15
4342 If dc3 = 1 Then Call king
4343 If dc3 = 2 Then Call queen
4344 If dc3 = 3 Then Call general
4345 If dc3 = 4 Then Call bishop
4346 If dc3 = 5 Then Call knight
4347 If dc3 = 6 Then Call rook
4348 If dc3 = 7 Then Call lance
4349 If dc3 = 8 Then Call pawn
4350 If dc3 = 9 Then Call horse
4351 If dc3 = 10 Then Call dragon
4352 If dc3 = 11 Then Call tokin
4353 Let x = 580: Let y = 160: Let cf = 0
4354 If dc6 = 1 Then Call king
4355 If dc6 = 2 Then Call queen
4356 If dc6 = 3 Then Call general
4357 If dc6 = 4 Then Call bishop
4358 If dc6 = 5 Then Call knight
4359 If dc6 = 6 Then Call rook
4360 If dc6 = 7 Then Call lance
4361 If dc6 = 8 Then Call pawn
4362 If dc6 = 9 Then Call horse
4363 If dc6 = 10 Then Call dragon
4364 If dc6 = 11 Then Call tokin
4365 Let x = 20: Let y = 220
4366 If dc1 = 1 Then Call letterA
4367 If dc1 = 2 Then Call letterB
4368 If dc1 = 3 Then Call letterC
4369 If dc1 = 4 Then Call letterD
4370 If dc1 = 5 Then Call letterE
4371 If dc1 = 6 Then Call letterF
4372 If dc1 = 7 Then Call letterG
4373 If dc1 = 8 Then Call letterH
4374 If dc1 = 9 Then Call letterI
4375 Let x = 20: Let y = 280
4376 If dc2 = 1 Then Call letter1
4377 If dc2 = 2 Then Call letter2
4378 If dc2 = 3 Then Call letter3
4379 If dc2 = 4 Then Call letter4
4380 If dc2 = 5 Then Call letter5
4381 If dc2 = 6 Then Call letter6
4382 If dc2 = 7 Then Call letter7
4383 If dc2 = 8 Then Call letter8
4384 If dc2 = 9 Then Call letter9
4385 Let x = 580: Let y = 220
4386 If dc4 = 1 Then Call letterA
4387 If dc4 = 2 Then Call letterB
4388 If dc4 = 3 Then Call letterC
4389 If dc4 = 4 Then Call letterD
4390 If dc4 = 5 Then Call letterE
4391 If dc4 = 6 Then Call letterF
4392 If dc4 = 7 Then Call letterG
4393 If dc4 = 8 Then Call letterH
4394 If dc4 = 9 Then Call letterI
4395 Let x = 580: Let y = 280
4396 If dc5 = 1 Then Call letter1
4397 If dc5 = 2 Then Call letter2
4398 If dc5 = 3 Then Call letter3
4399 If dc5 = 4 Then Call letter4
4400 If dc5 = 5 Then Call letter5
4401 If dc5 = 6 Then Call letter6
4402 If dc5 = 7 Then Call letter7
4403 If dc5 = 8 Then Call letter8
4404 If dc5 = 9 Then Call letter9
4405 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 60
4407 If dc3 = 1 Then Call king
4408 If dc3 = 2 Then Call queen
4409 If dc3 = 3 Then Call general
4410 If dc3 = 4 Then Call bishop
4411 If dc3 = 5 Then Call knight
4412 If dc3 = 6 Then Call rook
4413 If dc3 = 7 Then Call lance
4414 If dc3 = 8 Then Call pawn
4415 If dc3 = 9 Then Call horse
4416 If dc3 = 10 Then Call dragon
4417 If dc3 = 11 Then Call tokin
4418 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 60
4420 If dc6 = 1 Then Call king
4421 If dc6 = 2 Then Call queen
4422 If dc6 = 3 Then Call general
4423 If dc6 = 4 Then Call bishop
4424 If dc6 = 5 Then Call knight
4425 If dc6 = 6 Then Call rook
4426 If dc6 = 7 Then Call lance
4427 If dc6 = 8 Then Call pawn
4428 If dc6 = 9 Then Call horse
4429 If dc6 = 10 Then Call dragon
4430 If dc6 = 11 Then Call tokin
4446 Let count = 0: Let index = 0
4447 Let dc1 = Int(Rnd * 9 + 1)
4448 Let dc2 = Int(Rnd * 9 + 1)
4449 Let dc3 = Int(Rnd * 10 + 2)
4450 Let dc4 = Int(Rnd * 9 + 1)
4451 Let dc5 = Int(Rnd * 9 + 1)
4452 Let dc6 = Int(Rnd * 10 + 2)
4453 Let w4 = shobo(dc2, dc1): Let b4 = shobo(dc5, dc4)
4454 If dc3 = 4 Then Let indexw4 = indexw4 + 1
4455 If dc3 = 6 Then Let indexw6 = indexw6 + 1
4456 If dc3 = 9 Then Let indexw9 = indexw9 + 1
4457 If dc3 = 10 Then Let indexw10 = indexw10 + 1
4460 Let indexw4 = indexw4 - 1
4464 Let indexw6 = indexw4 - 1
4468 Let indexw9 = indexw4 - 1
4470 If indexw10 > 1 Then
4472 Let indexw10 = indexw4 - 1
4476 Let indexb4 = indexb4 - 1
4480 Let indexb6 = indexb4 - 1
4484 Let indexb9 = indexb4 - 1
4486 If indexb10 > 1 Then
4488 Let indexb10 = indexb4 - 1
4490 If indexw3 > 2 Or indexw5 > 2 Or indexw7 > 2 Then Let dc3 = 8
4491 If indexb3 > 2 Or indexb5 > 2 Or indexb7 > 2 Then Let dc6 = 8
4498 Let count = count + 1
4499 Let dc1 = Int(Rnd * 9 + 1)
4500 Let dc2 = Int(Rnd * 9 + 1)
4501 Let w4 = shobo(dc2, dc1)
4502 If count > 8000 Then Exit Do
4503 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4506 Let count = count + 1
4507 Let dc1 = Int(Rnd * 9 + 1)
4508 Let dc2 = Int(Rnd * 9 + 1)
4509 Let w4 = shobo(dc2, dc1)
4510 If count > 8000 Then Exit Do
4511 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4514 Let count = count + 1
4515 Let dc1 = Int(Rnd * 9 + 1)
4516 Let dc2 = Int(Rnd * 9 + 1)
4517 Let w4 = shobo(dc2, dc1)
4518 If count > 8000 Then Exit Do
4519 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4522 Let count = count + 1
4523 Let dc1 = Int(Rnd * 9 + 1)
4524 Let dc2 = Int(Rnd * 9 + 1)
4525 Let fw2x = dc1: Let fw2y = dc2
4526 Let w4 = shobo(dc2, dc1)
4527 If count > 8000 Then Exit Do
4528 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4531 Let count = count + 1
4532 Let dc1 = Int(Rnd * 9 + 1)
4533 Let dc2 = Int(Rnd * 9 + 1)
4534 Let fw2x = dc1: Let fw2y = dc2
4535 Let w4 = shobo(dc2, dc1)
4536 If count > 8000 Then Exit Do
4537 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4539 Let index = Int(Rnd * 2 + 1)
4540 If index = 1 Then Let dc1 = 1 Else Let dc1 = 9
4541 If indexw71 = 1 Then dc1 = 9
4542 If indexw72 = 1 Then dc1 = 1
4544 Let count = count + 1
4545 Let dc2 = Int(Rnd * 9 + 1)
4546 Let w4 = shobo(dc2, dc1)
4547 If count > 8000 Then Exit Do
4548 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4551 Let count = count + 1
4552 Let dc1 = Int(Rnd * 9 + 1)
4553 Let dc2 = Int(Rnd * 9 + 1)
4554 Let w4 = shobo(dc2, dc1)
4555 If count > 8000 Then Exit Do
4556 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc2 < 3 Or dc2 > 7
4559 Let count = count + 1
4560 Let dc1 = Int(Rnd * 9 + 1)
4561 Let dc2 = Int(Rnd * 9 + 1)
4562 Let w4 = shobo(dc2, dc1)
4563 If count > 8000 Then Exit Do
4564 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4567 Let count = count + 1
4568 Let dc1 = Int(Rnd * 9 + 1)
4569 Let dc2 = Int(Rnd * 9 + 1)
4570 Let w4 = shobo(dc2, dc1)
4571 If count > 8000 Then Exit Do
4572 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4575 Let count = count + 1
4576 Let dc1 = Int(Rnd * 9 + 1)
4577 Let dc2 = Int(Rnd * 9 + 1)
4578 Let w4 = shobo(dc2, dc1)
4579 If count > 8000 Then Exit Do
4580 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4587 Let count = count + 1
4588 Let dc4 = Int(Rnd * 9 + 1)
4589 Let dc5 = Int(Rnd * 9 + 1)
4590 Let b4 = shobo(dc5, dc4)
4591 If count > 8000 Then Exit Do
4592 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4595 Let count = count + 1
4596 Let dc4 = Int(Rnd * 9 + 1)
4597 Let dc5 = Int(Rnd * 9 + 1)
4598 Let b4 = shobo(dc5, dc4)
4599 If count > 8000 Then Exit Do
4600 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4603 Let count = count + 1
4604 Let dc4 = Int(Rnd * 9 + 1)
4605 Let dc5 = Int(Rnd * 9 + 1)
4606 Let b4 = shobo(dc5, dc4)
4607 If count > 8000 Then Exit Do
4608 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4611 Let count = count + 1
4612 Let dc4 = Int(Rnd * 9 + 1)
4613 Let dc5 = Int(Rnd * 9 + 1)
4614 Let fb2x = dc4: Let fb2y = dc5
4615 Let b4 = shobo(dc5, dc4)
4616 If count > 8000 Then Exit Do
4617 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4620 Let count = count + 1
4621 Let dc4 = Int(Rnd * 9 + 1)
4622 Let dc5 = Int(Rnd * 9 + 1)
4623 Let fb2x = dc4: Let fb2y = dc5
4624 Let b4 = shobo(dc5, dc4)
4625 If count > 8000 Then Exit Do
4626 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4628 Let index = Int(Rnd * 2 + 1)
4629 If index = 1 Then Let dc4 = 1 Else Let dc4 = 9
4630 If indexb71 = 1 Then dc4 = 9
4631 If indexb72 = 1 Then dc4 = 1
4633 Let count = count + 1
4634 Let dc5 = Int(Rnd * 9 + 1)
4635 Let b4 = shobo(dc5, dc4)
4636 If count > 8000 Then Exit Do
4637 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4640 Let count = count + 1
4641 Let dc4 = Int(Rnd * 9 + 1)
4642 Let dc5 = Int(Rnd * 9 + 1)
4643 Let b4 = shobo(dc5, dc4)
4644 If count > 8000 Then Exit Do
4645 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3 Or dc5 < 3 Or dc5 > 7
4648 Let count = count + 1
4649 Let dc4 = Int(Rnd * 9 + 1)
4650 Let dc5 = Int(Rnd * 9 + 1)
4651 Let b4 = shobo(dc5, dc4)
4652 If count > 8000 Then Exit Do
4653 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4656 Let count = count + 1
4657 Let dc4 = Int(Rnd * 9 + 1)
4658 Let dc5 = Int(Rnd * 9 + 1)
4659 Let b4 = shobo(dc5, dc4)
4660 If count > 8000 Then Exit Do
4661 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4664 Let count = count + 1
4665 Let dc4 = Int(Rnd * 9 + 1)
4666 Let dc5 = Int(Rnd * 9 + 1)
4667 Let b4 = shobo(dc5, dc4)
4668 If count > 8000 Then Exit Do
4669 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
4672 Let w4 = shobo(dc2, dc1): Let b4 = shobo(dc5, dc4)
4673 Let fw4x = dc1: Let fw4y = dc2: Let fb4x = dc4: Let fb4y = dc5
4674 Let fw4 = dc3: Let fb4 = dc6
4676 Let x = 20: Let y = 160: Let cf = 15
4677 If dc3 = 1 Then Call king
4678 If dc3 = 2 Then Call queen
4679 If dc3 = 3 Then Call general
4680 If dc3 = 4 Then Call bishop
4681 If dc3 = 5 Then Call knight
4682 If dc3 = 6 Then Call rook
4683 If dc3 = 7 Then Call lance
4684 If dc3 = 8 Then Call pawn
4685 If dc3 = 9 Then Call horse
4686 If dc3 = 10 Then Call dragon
4687 If dc3 = 11 Then Call tokin
4688 Let x = 580: Let y = 160: Let cf = 0
4689 If dc6 = 1 Then Call king
4690 If dc6 = 2 Then Call queen
4691 If dc6 = 3 Then Call general
4692 If dc6 = 4 Then Call bishop
4693 If dc6 = 5 Then Call knight
4694 If dc6 = 6 Then Call rook
4695 If dc6 = 7 Then Call lance
4696 If dc6 = 8 Then Call pawn
4697 If dc6 = 9 Then Call horse
4698 If dc6 = 10 Then Call dragon
4699 If dc6 = 11 Then Call tokin
4700 Let x = 20: Let y = 220
4701 If dc1 = 1 Then Call letterA
4702 If dc1 = 2 Then Call letterB
4703 If dc1 = 3 Then Call letterC
4704 If dc1 = 4 Then Call letterD
4705 If dc1 = 5 Then Call letterE
4706 If dc1 = 6 Then Call letterF
4707 If dc1 = 7 Then Call letterG
4708 If dc1 = 8 Then Call letterH
4709 If dc1 = 9 Then Call letterI
4710 Let x = 20: Let y = 280
4711 If dc2 = 1 Then Call letter1
4712 If dc2 = 2 Then Call letter2
4713 If dc2 = 3 Then Call letter3
4714 If dc2 = 4 Then Call letter4
4715 If dc2 = 5 Then Call letter5
4716 If dc2 = 6 Then Call letter6
4717 If dc2 = 7 Then Call letter7
4718 If dc2 = 8 Then Call letter8
4719 If dc2 = 9 Then Call letter9
4720 Let x = 580: Let y = 220
4721 If dc4 = 1 Then Call letterA
4722 If dc4 = 2 Then Call letterB
4723 If dc4 = 3 Then Call letterC
4724 If dc4 = 4 Then Call letterD
4725 If dc4 = 5 Then Call letterE
4726 If dc4 = 6 Then Call letterF
4727 If dc4 = 7 Then Call letterG
4728 If dc4 = 8 Then Call letterH
4729 If dc4 = 9 Then Call letterI
4730 Let x = 580: Let y = 280
4731 If dc5 = 1 Then Call letter1
4732 If dc5 = 2 Then Call letter2
4733 If dc5 = 3 Then Call letter3
4734 If dc5 = 4 Then Call letter4
4735 If dc5 = 5 Then Call letter5
4736 If dc5 = 6 Then Call letter6
4737 If dc5 = 7 Then Call letter7
4738 If dc5 = 8 Then Call letter8
4739 If dc5 = 9 Then Call letter9
4740 Let x = (dc1 * 40) + 100: Let y = Abs((dc2 * 40) - 480) - 60
4742 If dc3 = 1 Then Call king
4743 If dc3 = 2 Then Call queen
4744 If dc3 = 3 Then Call general
4745 If dc3 = 4 Then Call bishop
4746 If dc3 = 5 Then Call knight
4747 If dc3 = 6 Then Call rook
4748 If dc3 = 7 Then Call lance
4749 If dc3 = 8 Then Call pawn
4750 If dc3 = 9 Then Call horse
4751 If dc3 = 10 Then Call dragon
4752 If dc3 = 11 Then Call tokin
4753 Let x = (dc4 * 40) + 100: Let y = Abs((dc5 * 40) - 480) - 60
4755 If dc6 = 1 Then Call king
4756 If dc6 = 2 Then Call queen
4757 If dc6 = 3 Then Call general
4758 If dc6 = 4 Then Call bishop
4759 If dc6 = 5 Then Call knight
4760 If dc6 = 6 Then Call rook
4761 If dc6 = 7 Then Call lance
4762 If dc6 = 8 Then Call pawn
4763 If dc6 = 9 Then Call horse
4764 If dc6 = 10 Then Call dragon
4765 If dc6 = 11 Then Call tokin
4783 Let count = 0: Let index = 0
4784 Let dc1 = Int(Rnd * 10 + 1)
4785 Let dc2 = Int(Rnd * 10 + 1)
4786 Let dc3 = Int(Rnd * 2 + 1)
4787 Let dc4 = Int(Rnd * 10 + 1)
4788 Let dc5 = Int(Rnd * 10 + 1)
4789 Let dc6 = Int(Rnd * 2 + 1)
4790 Let w1 = drabo(dc2, dc1): Let b1 = drabo(dc5, dc4)
4794 Let count = count + 1
4795 Let dc1 = Int(Rnd * 8 + 1)
4796 Let dc2 = Int(Rnd * 8 + 1)
4797 Let dc4 = Int(Rnd * 8 + 1)
4798 Let dc5 = Int(Rnd * 8 + 1)
4799 Let w1 = drabo(dc2, dc1): Let b1 = drabo(dc5, dc4)
4800 If count > 8000 Then Exit Do
4801 Loop Until w1 Mod 2 <> 0 And b1 Mod 2 <> 0
4802 Let count = count + 1
4803 If count > 8000 Then Exit Do
4806 Let w1 = drabo(dc2, dc1): Let b1 = drabo(dc5, dc4)
4807 Let fw1x = dc1: Let fw1y = dc2: Let fb1x = dc4: Let fb1y = dc5
4808 Let fw1 = dc3: Let fb1 = dc6
4809 Let x = 20: Let y = 160: Let cf = 15
4810 If dc3 = 1 Then Call dame
4811 If dc3 = 2 Then Call checker
4812 Let x = 580: Let y = 160: Let cf = 0
4813 If dc6 = 1 Then Call dame
4814 If dc6 = 2 Then Call checker
4815 Let x = 20: Let y = 220
4816 If dc1 = 1 Then Call letterA
4817 If dc1 = 2 Then Call letterB
4818 If dc1 = 3 Then Call letterC
4819 If dc1 = 4 Then Call letterD
4820 If dc1 = 5 Then Call letterE
4821 If dc1 = 6 Then Call letterF
4822 If dc1 = 7 Then Call letterG
4823 If dc1 = 8 Then Call letterH
4824 If dc1 = 9 Then Call letterI
4825 If dc1 = 10 Then Call letterJ
4826 Let x = 20: Let y = 280
4827 If dc2 = 1 Then Call letter1
4828 If dc2 = 2 Then Call letter2
4829 If dc2 = 3 Then Call letter3
4830 If dc2 = 4 Then Call letter4
4831 If dc2 = 5 Then Call letter5
4832 If dc2 = 6 Then Call letter6
4833 If dc2 = 7 Then Call letter7
4834 If dc2 = 8 Then Call letter8
4835 If dc2 = 9 Then Call letter9
4836 If dc2 = 10 Then Call letter0
4837 Let x = 580: Let y = 220
4838 If dc4 = 1 Then Call letterA
4839 If dc4 = 2 Then Call letterB
4840 If dc4 = 3 Then Call letterC
4841 If dc4 = 4 Then Call letterD
4842 If dc4 = 5 Then Call letterE
4843 If dc4 = 6 Then Call letterF
4844 If dc4 = 7 Then Call letterG
4845 If dc4 = 8 Then Call letterH
4846 If dc4 = 9 Then Call letterI
4847 If dc4 = 10 Then Call letterJ
4848 Let x = 580: Let y = 280
4849 If dc5 = 1 Then Call letter1
4850 If dc5 = 2 Then Call letter2
4851 If dc5 = 3 Then Call letter3
4852 If dc5 = 4 Then Call letter4
4853 If dc5 = 5 Then Call letter5
4854 If dc5 = 6 Then Call letter6
4855 If dc5 = 7 Then Call letter7
4856 If dc5 = 8 Then Call letter8
4857 If dc5 = 9 Then Call letter9
4858 If dc5 = 10 Then Call letter0
4859 Let x = (dc1 * 40) + 80: Let y = Abs((dc2 * 40) - 480) - 40
4861 If dc3 = 1 Then Call dame
4862 If dc3 = 2 Then Call checker
4863 Let x = (dc4 * 40) + 80: Let y = Abs((dc5 * 40) - 480) - 40
4865 If dc6 = 1 Then Call dame
4866 If dc6 = 2 Then Call checker
4882 Let count = 0: Let index = 0
4883 Let dc1 = Int(Rnd * 10 + 1)
4884 Let dc2 = Int(Rnd * 10 + 1)
4885 Let dc3 = Int(Rnd * 2 + 1)
4886 Let dc4 = Int(Rnd * 10 + 1)
4887 Let dc5 = Int(Rnd * 10 + 1)
4888 Let dc6 = Int(Rnd * 2 + 1)
4889 Let w2 = drabo(dc2, dc1): Let b2 = drabo(dc5, dc4)
4895 Let count = count + 1
4896 Let dc1 = Int(Rnd * 10 + 1)
4897 Let dc2 = Int(Rnd * 10 + 1)
4898 Let w2 = drabo(dc2, dc1)
4899 If count > 8000 Then Exit Do
4900 Loop Until w2 Mod 2 <> 0
4901 Let count = count + 1
4902 If count > 8000 Then Exit Do
4903 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
4907 Let count = count + 1
4908 Let dc1 = Int(Rnd * 10 + 1)
4909 Let dc2 = Int(Rnd * 10 + 1)
4910 Let w2 = drabo(dc2, dc1)
4911 If count > 8000 Then Exit Do
4912 Loop Until w2 Mod 2 <> 0
4913 Let count = count + 1
4914 If count > 8000 Then Exit Do
4915 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
4921 Let count = count + 1
4922 Let dc4 = Int(Rnd * 10 + 1)
4923 Let dc5 = Int(Rnd * 10 + 1)
4924 Let b2 = drabo(dc5, dc4)
4925 If count > 8000 Then Exit Do
4926 Loop Until b2 Mod 2 <> 0
4927 Let count = count + 1
4928 If count > 8000 Then Exit Do
4929 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
4933 Let count = count + 1
4934 Let dc4 = Int(Rnd * 10 + 1)
4935 Let dc5 = Int(Rnd * 10 + 1)
4936 Let b2 = drabo(dc5, dc4)
4937 If count > 8000 Then Exit Do
4938 Loop Until b2 Mod 2 <> 0
4939 Let count = count + 1
4940 If count > 8000 Then Exit Do
4941 Loop While w2 = w1 Or w2 = b1 Or w2 = b2 Or b2 = w1 Or b2 = b1
4944 Let w2 = drabo(dc2, dc1): Let b2 = drabo(dc5, dc4)
4945 Let fw2x = dc1: Let fw2y = dc2: Let fb2x = dc4: Let fb2y = dc5
4946 Let fw2 = dc3: Let fb2 = dc6
4948 Let x = 20: Let y = 160: Let cf = 15
4949 If dc3 = 1 Then Call dame
4950 If dc3 = 2 Then Call checker
4951 Let x = 580: Let y = 160: Let cf = 0
4952 If dc6 = 1 Then Call dame
4953 If dc6 = 2 Then Call checker
4954 Let x = 20: Let y = 220
4955 If dc1 = 1 Then Call letterA
4956 If dc1 = 2 Then Call letterB
4957 If dc1 = 3 Then Call letterC
4958 If dc1 = 4 Then Call letterD
4959 If dc1 = 5 Then Call letterE
4960 If dc1 = 6 Then Call letterF
4961 If dc1 = 7 Then Call letterG
4962 If dc1 = 8 Then Call letterH
4963 If dc1 = 9 Then Call letterI
4964 If dc1 = 10 Then Call letterJ
4965 Let x = 20: Let y = 280
4966 If dc2 = 1 Then Call letter1
4967 If dc2 = 2 Then Call letter2
4968 If dc2 = 3 Then Call letter3
4969 If dc2 = 4 Then Call letter4
4970 If dc2 = 5 Then Call letter5
4971 If dc2 = 6 Then Call letter6
4972 If dc2 = 7 Then Call letter7
4973 If dc2 = 8 Then Call letter8
4974 If dc2 = 9 Then Call letter9
4975 If dc2 = 10 Then Call letter0
4976 Let x = 580: Let y = 220
4977 If dc4 = 1 Then Call letterA
4978 If dc4 = 2 Then Call letterB
4979 If dc4 = 3 Then Call letterC
4980 If dc4 = 4 Then Call letterD
4981 If dc4 = 5 Then Call letterE
4982 If dc4 = 6 Then Call letterF
4983 If dc4 = 7 Then Call letterG
4984 If dc4 = 8 Then Call letterH
4985 If dc4 = 9 Then Call letterI
4986 If dc4 = 10 Then Call letterJ
4987 Let x = 580: Let y = 280
4988 If dc5 = 1 Then Call letter1
4989 If dc5 = 2 Then Call letter2
4990 If dc5 = 3 Then Call letter3
4991 If dc5 = 4 Then Call letter4
4992 If dc5 = 5 Then Call letter5
4993 If dc5 = 6 Then Call letter6
4994 If dc5 = 7 Then Call letter7
4995 If dc5 = 8 Then Call letter8
4996 If dc5 = 9 Then Call letter9
4997 If dc5 = 10 Then Call letter0
4998 Let x = (dc1 * 40) + 80: Let y = Abs((dc2 * 40) - 480) - 40
5000 If dc3 = 1 Then Call dame
5001 If dc3 = 2 Then Call checker
5002 Let x = (dc4 * 40) + 80: Let y = Abs((dc5 * 40) - 480) - 40
5004 If dc6 = 1 Then Call dame
5005 If dc6 = 2 Then Call checker
5021 Let count = 0: Let index = 0
5022 Let dc1 = Int(Rnd * 10 + 1)
5023 Let dc2 = Int(Rnd * 10 + 1)
5024 Let dc3 = Int(Rnd * 2 + 1)
5025 Let dc4 = Int(Rnd * 10 + 1)
5026 Let dc5 = Int(Rnd * 10 + 1)
5027 Let dc6 = Int(Rnd * 2 + 1)
5028 Let w3 = drabo(dc2, dc1): Let b3 = drabo(dc5, dc4)
5034 Let count = count + 1
5035 Let dc1 = Int(Rnd * 10 + 1)
5036 Let dc2 = Int(Rnd * 10 + 1)
5037 Let w3 = drabo(dc2, dc1)
5038 If count > 8000 Then Exit Do
5039 Loop Until w3 Mod 2 <> 0
5040 Let count = count + 1
5041 If count > 8000 Then Exit Do
5042 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
5046 Let count = count + 1
5047 Let dc1 = Int(Rnd * 10 + 1)
5048 Let dc2 = Int(Rnd * 10 + 1)
5049 Let w3 = drabo(dc2, dc1)
5050 If count > 8000 Then Exit Do
5051 Loop Until w3 Mod 2 <> 0
5052 Let count = count + 1
5053 If count > 8000 Then Exit Do
5054 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
5060 Let count = count + 1
5061 Let dc4 = Int(Rnd * 10 + 1)
5062 Let dc5 = Int(Rnd * 10 + 1)
5063 Let b3 = drabo(dc5, dc4)
5064 If count > 8000 Then Exit Do
5065 Loop Until b3 Mod 2 <> 0
5066 Let count = count + 1
5067 If count > 8000 Then Exit Do
5068 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
5072 Let count = count + 1
5073 Let dc4 = Int(Rnd * 10 + 1)
5074 Let dc5 = Int(Rnd * 10 + 1)
5075 Let b3 = drabo(dc5, dc4)
5076 If count > 8000 Then Exit Do
5077 Loop Until b3 Mod 2 <> 0
5078 Let count = count + 1
5079 If count > 8000 Then Exit Do
5080 Loop While w3 = w1 Or w3 = w2 Or w3 = b1 Or w3 = b2 Or w3 = b3 Or b3 = w1 Or b3 = w2 Or b3 = b1 Or b3 = b2
5083 Let w3 = drabo(dc2, dc1): Let b3 = drabo(dc5, dc4)
5084 Let fw3x = dc1: Let fw3y = dc2: Let fb3x = dc4: Let fb3y = dc5
5085 Let fw3 = dc3: Let fb3 = dc6
5087 Let x = 20: Let y = 160: Let cf = 15
5088 If dc3 = 1 Then Call dame
5089 If dc3 = 2 Then Call checker
5090 Let x = 580: Let y = 160: Let cf = 0
5091 If dc6 = 1 Then Call dame
5092 If dc6 = 2 Then Call checker
5093 Let x = 20: Let y = 220
5094 If dc1 = 1 Then Call letterA
5095 If dc1 = 2 Then Call letterB
5096 If dc1 = 3 Then Call letterC
5097 If dc1 = 4 Then Call letterD
5098 If dc1 = 5 Then Call letterE
5099 If dc1 = 6 Then Call letterF
5100 If dc1 = 7 Then Call letterG
5101 If dc1 = 8 Then Call letterH
5102 If dc1 = 9 Then Call letterI
5103 If dc1 = 10 Then Call letterJ
5104 Let x = 20: Let y = 280
5105 If dc2 = 1 Then Call letter1
5106 If dc2 = 2 Then Call letter2
5107 If dc2 = 3 Then Call letter3
5108 If dc2 = 4 Then Call letter4
5109 If dc2 = 5 Then Call letter5
5110 If dc2 = 6 Then Call letter6
5111 If dc2 = 7 Then Call letter7
5112 If dc2 = 8 Then Call letter8
5113 If dc2 = 9 Then Call letter9
5114 If dc2 = 10 Then Call letter0
5115 Let x = 580: Let y = 220
5116 If dc4 = 1 Then Call letterA
5117 If dc4 = 2 Then Call letterB
5118 If dc4 = 3 Then Call letterC
5119 If dc4 = 4 Then Call letterD
5120 If dc4 = 5 Then Call letterE
5121 If dc4 = 6 Then Call letterF
5122 If dc4 = 7 Then Call letterG
5123 If dc4 = 8 Then Call letterH
5124 If dc4 = 9 Then Call letterI
5125 If dc4 = 10 Then Call letterJ
5126 Let x = 580: Let y = 280
5127 If dc5 = 1 Then Call letter1
5128 If dc5 = 2 Then Call letter2
5129 If dc5 = 3 Then Call letter3
5130 If dc5 = 4 Then Call letter4
5131 If dc5 = 5 Then Call letter5
5132 If dc5 = 6 Then Call letter6
5133 If dc5 = 7 Then Call letter7
5134 If dc5 = 8 Then Call letter8
5135 If dc5 = 9 Then Call letter9
5136 If dc5 = 10 Then Call letter0
5137 Let x = (dc1 * 40) + 80: Let y = Abs((dc2 * 40) - 480) - 40
5139 If dc3 = 1 Then Call dame
5140 If dc3 = 2 Then Call checker
5141 Let x = (dc4 * 40) + 80: Let y = Abs((dc5 * 40) - 480) - 40
5143 If dc6 = 1 Then Call dame
5144 If dc6 = 2 Then Call checker
5160 Let count = 0: Let index = 0
5161 Let dc1 = Int(Rnd * 10 + 1)
5162 Let dc2 = Int(Rnd * 10 + 1)
5163 Let dc3 = Int(Rnd * 2 + 1)
5164 Let dc4 = Int(Rnd * 10 + 1)
5165 Let dc5 = Int(Rnd * 10 + 1)
5166 Let dc6 = Int(Rnd * 2 + 1)
5167 Let w4 = drabo(dc2, dc1): Let b4 = drabo(dc5, dc4)
5173 Let count = count + 1
5174 Let dc1 = Int(Rnd * 10 + 1)
5175 Let dc2 = Int(Rnd * 10 + 1)
5176 Let w4 = drabo(dc2, dc1)
5177 If count > 8000 Then Exit Do
5178 Loop Until w4 Mod 2 <> 0
5179 Let count = count + 1
5180 If count > 8000 Then Exit Do
5181 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
5185 Let count = count + 1
5186 Let dc1 = Int(Rnd * 10 + 1)
5187 Let dc2 = Int(Rnd * 10 + 1)
5188 Let w4 = drabo(dc2, dc1)
5189 If count > 8000 Then Exit Do
5190 Loop Until w4 Mod 2 <> 0
5191 Let count = count + 1
5192 If count > 8000 Then Exit Do
5193 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
5199 Let count = count + 1
5200 Let dc4 = Int(Rnd * 10 + 1)
5201 Let dc5 = Int(Rnd * 10 + 1)
5202 Let b4 = drabo(dc5, dc4)
5203 If count > 8000 Then Exit Do
5204 Loop Until b4 Mod 2 <> 0
5205 Let count = count + 1
5206 If count > 8000 Then Exit Do
5207 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
5211 Let count = count + 1
5212 Let dc4 = Int(Rnd * 10 + 1)
5213 Let dc5 = Int(Rnd * 10 + 1)
5214 Let b4 = drabo(dc5, dc4)
5215 If count > 8000 Then Exit Do
5216 Loop Until b4 Mod 2 <> 0
5217 Let count = count + 1
5218 If count > 8000 Then Exit Do
5219 Loop While w4 = w1 Or w4 = w2 Or w4 = w3 Or w4 = b1 Or w4 = b2 Or w4 = b3 Or w4 = b4 Or b4 = w1 Or b4 = w2 Or b4 = w3 Or b4 = b1 Or b4 = b2 Or b4 = b3
5222 Let w4 = drabo(dc2, dc1): Let b4 = drabo(dc5, dc4)
5223 Let fw4x = dc1: Let fw4y = dc2: Let fb4x = dc4: Let fb4y = dc5
5224 Let fw4 = dc3: Let fb4 = dc6
5226 Let x = 20: Let y = 160: Let cf = 15
5227 If dc3 = 1 Then Call dame
5228 If dc3 = 2 Then Call checker
5229 Let x = 580: Let y = 160: Let cf = 0
5230 If dc6 = 1 Then Call dame
5231 If dc6 = 2 Then Call checker
5232 Let x = 20: Let y = 220
5233 If dc1 = 1 Then Call letterA
5234 If dc1 = 2 Then Call letterB
5235 If dc1 = 3 Then Call letterC
5236 If dc1 = 4 Then Call letterD
5237 If dc1 = 5 Then Call letterE
5238 If dc1 = 6 Then Call letterF
5239 If dc1 = 7 Then Call letterG
5240 If dc1 = 8 Then Call letterH
5241 If dc1 = 9 Then Call letterI
5242 If dc1 = 10 Then Call letterJ
5243 Let x = 20: Let y = 280
5244 If dc2 = 1 Then Call letter1
5245 If dc2 = 2 Then Call letter2
5246 If dc2 = 3 Then Call letter3
5247 If dc2 = 4 Then Call letter4
5248 If dc2 = 5 Then Call letter5
5249 If dc2 = 6 Then Call letter6
5250 If dc2 = 7 Then Call letter7
5251 If dc2 = 8 Then Call letter8
5252 If dc2 = 9 Then Call letter9
5253 If dc2 = 10 Then Call letter0
5254 Let x = 580: Let y = 220
5255 If dc4 = 1 Then Call letterA
5256 If dc4 = 2 Then Call letterB
5257 If dc4 = 3 Then Call letterC
5258 If dc4 = 4 Then Call letterD
5259 If dc4 = 5 Then Call letterE
5260 If dc4 = 6 Then Call letterF
5261 If dc4 = 7 Then Call letterG
5262 If dc4 = 8 Then Call letterH
5263 If dc4 = 9 Then Call letterI
5264 If dc4 = 10 Then Call letterJ
5265 Let x = 580: Let y = 280
5266 If dc5 = 1 Then Call letter1
5267 If dc5 = 2 Then Call letter2
5268 If dc5 = 3 Then Call letter3
5269 If dc5 = 4 Then Call letter4
5270 If dc5 = 5 Then Call letter5
5271 If dc5 = 6 Then Call letter6
5272 If dc5 = 7 Then Call letter7
5273 If dc5 = 8 Then Call letter8
5274 If dc5 = 9 Then Call letter9
5275 If dc5 = 10 Then Call letter0
5276 Let x = (dc1 * 40) + 80: Let y = Abs((dc2 * 40) - 480) - 40
5278 If dc3 = 1 Then Call dame
5279 If dc3 = 2 Then Call checker
5280 Let x = (dc4 * 40) + 80: Let y = Abs((dc5 * 40) - 480) - 40
5282 If dc6 = 1 Then Call dame
5283 If dc6 = 2 Then Call checker
5300 Rem Forsyth-Edwards notation
5302 If fw1 = 1 Then Let fig1w$ = "K"
5303 If fw1 = 2 Then Let fig1w$ = "Q"
5304 If fw1 = 3 Then Let fig1w$ = "B"
5305 If fw1 = 4 Then Let fig1w$ = "N"
5306 If fw1 = 5 Then Let fig1w$ = "R"
5307 If fw1 = 6 Then Let fig1w$ = "P"
5309 If fb1 = 1 Then Let fig1b$ = "k"
5310 If fb1 = 2 Then Let fig1b$ = "q"
5311 If fb1 = 3 Then Let fig1b$ = "b"
5312 If fb1 = 4 Then Let fig1b$ = "n"
5313 If fb1 = 5 Then Let fig1b$ = "r"
5314 If fb1 = 6 Then Let fig1b$ = "p"
5316 If fw2 = 1 Then Let fig2w$ = "K"
5317 If fw2 = 2 Then Let fig2w$ = "Q"
5318 If fw2 = 3 Then Let fig2w$ = "B"
5319 If fw2 = 4 Then Let fig2w$ = "N"
5320 If fw2 = 5 Then Let fig2w$ = "R"
5321 If fw2 = 6 Then Let fig2w$ = "P"
5323 If fb2 = 1 Then Let fig2b$ = "k"
5324 If fb2 = 2 Then Let fig2b$ = "q"
5325 If fb2 = 3 Then Let fig2b$ = "b"
5326 If fb2 = 4 Then Let fig2b$ = "n"
5327 If fb2 = 5 Then Let fig2b$ = "r"
5328 If fb2 = 6 Then Let fig2b$ = "p"
5330 If fw3 = 1 Then Let fig3w$ = "K"
5331 If fw3 = 2 Then Let fig3w$ = "Q"
5332 If fw3 = 3 Then Let fig3w$ = "B"
5333 If fw3 = 4 Then Let fig3w$ = "N"
5334 If fw3 = 5 Then Let fig3w$ = "R"
5335 If fw3 = 6 Then Let fig3w$ = "P"
5337 If fb3 = 1 Then Let fig3b$ = "k"
5338 If fb3 = 2 Then Let fig3b$ = "q"
5339 If fb3 = 3 Then Let fig3b$ = "b"
5340 If fb3 = 4 Then Let fig3b$ = "n"
5341 If fb3 = 5 Then Let fig3b$ = "r"
5342 If fb3 = 6 Then Let fig3b$ = "p"
5344 If fw4 = 1 Then Let fig4w$ = "K"
5345 If fw4 = 2 Then Let fig4w$ = "Q"
5346 If fw4 = 3 Then Let fig4w$ = "B"
5347 If fw4 = 4 Then Let fig4w$ = "N"
5348 If fw4 = 5 Then Let fig4w$ = "R"
5349 If fw4 = 6 Then Let fig4w$ = "P"
5351 If fb4 = 1 Then Let fig4b$ = "k"
5352 If fb4 = 2 Then Let fig4b$ = "q"
5353 If fb4 = 3 Then Let fig4b$ = "b"
5354 If fb4 = 4 Then Let fig4b$ = "n"
5355 If fb4 = 5 Then Let fig4b$ = "r"
5356 If fb4 = 6 Then Let fig4b$ = "p"
5358 Dim table(8, 8) As String
5359 Let table(fw1y, fw1x) = fig1w$
5360 Let table(fb1y, fb1x) = fig1b$
5361 Let table(fw2y, fw2x) = fig2w$
5362 Let table(fb2y, fb2x) = fig2b$
5363 Let table(fw3y, fw3x) = fig3w$
5364 Let table(fb3y, fb3x) = fig3b$
5365 Let table(fw4y, fw4x) = fig4w$
5366 Let table(fb4y, fb4x) = fig4b$
5367 For row = 1 To 8: For col = 1 To 8
5368 If table(row, col) = "" Then Let table(row, col) = "+"
5371 Let mas1$ = table(1, 1) + table(1, 2) + table(1, 3) + table(1, 4) + table(1, 5) + table(1, 6) + table(1, 7) + table(1, 8)
5375 If index = 8 And Mid$(mas1$, index, 1) = "+" Then
5377 lin1$ = lin1$ + LTrim$(Str$(count))
5379 If index < 8 And Mid$(mas1$, index, 1) = "+" Then
5382 If Mid$(mas1$, index, 1) <> "+" And count = 0 Then
5383 lin1$ = lin1$ + Mid$(mas1$, index, 1)
5385 If Mid$(mas1$, index, 1) <> "+" And count > 0 Then
5386 lin1$ = lin1$ + LTrim$(Str$(count))
5387 lin1$ = lin1$ + Mid$(mas1$, index, 1)
5392 Let mas2$ = table(2, 1) + table(2, 2) + table(2, 3) + table(2, 4) + table(2, 5) + table(2, 6) + table(2, 7) + table(2, 8)
5396 If index = 8 And Mid$(mas2$, index, 1) = "+" Then
5398 lin2$ = lin2$ + LTrim$(Str$(count))
5400 If index < 8 And Mid$(mas2$, index, 1) = "+" Then
5403 If Mid$(mas2$, index, 1) <> "+" And count = 0 Then
5404 lin2$ = lin2$ + Mid$(mas2$, index, 1)
5406 If Mid$(mas2$, index, 1) <> "+" And count > 0 Then
5407 lin2$ = lin2$ + LTrim$(Str$(count))
5408 lin2$ = lin2$ + Mid$(mas2$, index, 1)
5413 Let mas3$ = table(3, 1) + table(3, 2) + table(3, 3) + table(3, 4) + table(3, 5) + table(3, 6) + table(3, 7) + table(3, 8)
5417 If index = 8 And Mid$(mas3$, index, 1) = "+" Then
5419 lin3$ = lin3$ + LTrim$(Str$(count))
5421 If index < 8 And Mid$(mas3$, index, 1) = "+" Then
5424 If Mid$(mas3$, index, 1) <> "+" And count = 0 Then
5425 lin3$ = lin3$ + Mid$(mas3$, index, 1)
5427 If Mid$(mas3$, index, 1) <> "+" And count > 0 Then
5428 lin3$ = lin3$ + LTrim$(Str$(count))
5429 lin3$ = lin3$ + Mid$(mas3$, index, 1)
5434 Let mas4$ = table(4, 1) + table(4, 2) + table(4, 3) + table(4, 4) + table(4, 5) + table(4, 6) + table(4, 7) + table(4, 8)
5438 If index = 8 And Mid$(mas4$, index, 1) = "+" Then
5440 lin4$ = lin4$ + LTrim$(Str$(count))
5442 If index < 8 And Mid$(mas4$, index, 1) = "+" Then
5445 If Mid$(mas4$, index, 1) <> "+" And count = 0 Then
5446 lin4$ = lin4$ + Mid$(mas4$, index, 1)
5448 If Mid$(mas4$, index, 1) <> "+" And count > 0 Then
5449 lin4$ = lin4$ + LTrim$(Str$(count))
5450 lin4$ = lin4$ + Mid$(mas4$, index, 1)
5455 Let mas5$ = table(5, 1) + table(5, 2) + table(5, 3) + table(5, 4) + table(5, 5) + table(5, 6) + table(5, 7) + table(5, 8)
5459 If index = 8 And Mid$(mas5$, index, 1) = "+" Then
5461 lin5$ = lin5$ + LTrim$(Str$(count))
5463 If index < 8 And Mid$(mas5$, index, 1) = "+" Then
5466 If Mid$(mas5$, index, 1) <> "+" And count = 0 Then
5467 lin5$ = lin5$ + Mid$(mas5$, index, 1)
5469 If Mid$(mas5$, index, 1) <> "+" And count > 0 Then
5470 lin5$ = lin5$ + LTrim$(Str$(count))
5471 lin5$ = lin5$ + Mid$(mas5$, index, 1)
5476 Let mas6$ = table(6, 1) + table(6, 2) + table(6, 3) + table(6, 4) + table(6, 5) + table(6, 6) + table(6, 7) + table(6, 8)
5480 If index = 8 And Mid$(mas6$, index, 1) = "+" Then
5482 lin6$ = lin6$ + LTrim$(Str$(count))
5484 If index < 8 And Mid$(mas6$, index, 1) = "+" Then
5487 If Mid$(mas6$, index, 1) <> "+" And count = 0 Then
5488 lin6$ = lin6$ + Mid$(mas6$, index, 1)
5490 If Mid$(mas6$, index, 1) <> "+" And count > 0 Then
5491 lin6$ = lin6$ + LTrim$(Str$(count))
5492 lin6$ = lin6$ + Mid$(mas6$, index, 1)
5497 Let mas7$ = table(7, 1) + table(7, 2) + table(7, 3) + table(7, 4) + table(7, 5) + table(7, 6) + table(7, 7) + table(7, 8)
5501 If index = 8 And Mid$(mas7$, index, 1) = "+" Then
5503 lin7$ = lin7$ + LTrim$(Str$(count))
5505 If index < 8 And Mid$(mas7$, index, 1) = "+" Then
5508 If Mid$(mas7$, index, 1) <> "+" And count = 0 Then
5509 lin7$ = lin7$ + Mid$(mas7$, index, 1)
5511 If Mid$(mas7$, index, 1) <> "+" And count > 0 Then
5512 lin7$ = lin7$ + LTrim$(Str$(count))
5513 lin7$ = lin7$ + Mid$(mas7$, index, 1)
5518 Let mas8$ = table(8, 1) + table(8, 2) + table(8, 3) + table(8, 4) + table(8, 5) + table(8, 6) + table(8, 7) + table(8, 8)
5522 If index = 8 And Mid$(mas8$, index, 1) = "+" Then
5524 lin8$ = lin8$ + LTrim$(Str$(count))
5526 If index < 8 And Mid$(mas8$, index, 1) = "+" Then
5529 If Mid$(mas8$, index, 1) <> "+" And count = 0 Then
5530 lin8$ = lin8$ + Mid$(mas8$, index, 1)
5532 If Mid$(mas8$, index, 1) <> "+" And count > 0 Then
5533 lin8$ = lin8$ + LTrim$(Str$(count))
5534 lin8$ = lin8$ + Mid$(mas8$, index, 1)
5539 Let fen$ = lin8$ + "/" + lin7$ + "/" + lin6$ + "/" + lin5$ + "/" + lin4$ + "/" + lin3$ + "/" + lin2$ + "/" + lin1$
5542 Locate 2, 1: Print " Press any key to display the Forsyth-Edwards notation "
5544 Loop Until InKey$ <> ""
5545 Locate 2, 1: Print " "
5547 Locate 2, 28: Print fen$
5550 Loop Until InKey$ <> ""
5558 Rem Forsyth-Edwards notation
5560 If fw1 = 1 Then Let fig1w$ = "L"
5561 If fw1 = 2 Then Let fig1w$ = "S"
5562 If fw1 = 3 Then Let fig1w$ = "N"
5563 If fw1 = 4 Then Let fig1w$ = "H"
5564 If fw1 = 5 Then Let fig1w$ = "B"
5565 If fw1 = 6 Then Let fig1w$ = "C"
5567 If fb1 = 1 Then Let fig1b$ = "l"
5568 If fb1 = 2 Then Let fig1b$ = "s"
5569 If fb1 = 3 Then Let fig1b$ = "n"
5570 If fb1 = 4 Then Let fig1b$ = "h"
5571 If fb1 = 5 Then Let fig1b$ = "b"
5572 If fb1 = 6 Then Let fig1b$ = "c"
5574 If fw2 = 1 Then Let fig2w$ = "L"
5575 If fw2 = 2 Then Let fig2w$ = "S"
5576 If fw2 = 3 Then Let fig2w$ = "N"
5577 If fw2 = 4 Then Let fig2w$ = "H"
5578 If fw2 = 5 Then Let fig2w$ = "B"
5579 If fw2 = 6 Then Let fig2w$ = "C"
5581 If fb2 = 1 Then Let fig2b$ = "l"
5582 If fb2 = 2 Then Let fig2b$ = "s"
5583 If fb2 = 3 Then Let fig2b$ = "n"
5584 If fb2 = 4 Then Let fig2b$ = "h"
5585 If fb2 = 5 Then Let fig2b$ = "b"
5586 If fb2 = 6 Then Let fig2b$ = "c"
5588 If fw3 = 1 Then Let fig3w$ = "L"
5589 If fw3 = 2 Then Let fig3w$ = "S"
5590 If fw3 = 3 Then Let fig3w$ = "N"
5591 If fw3 = 4 Then Let fig3w$ = "H"
5592 If fw3 = 5 Then Let fig3w$ = "B"
5593 If fw3 = 6 Then Let fig3w$ = "C"
5595 If fb3 = 1 Then Let fig3b$ = "l"
5596 If fb3 = 2 Then Let fig3b$ = "s"
5597 If fb3 = 3 Then Let fig3b$ = "n"
5598 If fb3 = 4 Then Let fig3b$ = "h"
5599 If fb3 = 5 Then Let fig3b$ = "b"
5600 If fb3 = 6 Then Let fig3b$ = "c"
5602 If fw4 = 1 Then Let fig4w$ = "L"
5603 If fw4 = 2 Then Let fig4w$ = "S"
5604 If fw4 = 3 Then Let fig4w$ = "N"
5605 If fw4 = 4 Then Let fig4w$ = "H"
5606 If fw4 = 5 Then Let fig4w$ = "B"
5607 If fw4 = 6 Then Let fig4w$ = "C"
5609 If fb4 = 1 Then Let fig4b$ = "l"
5610 If fb4 = 2 Then Let fig4b$ = "s"
5611 If fb4 = 3 Then Let fig4b$ = "n"
5612 If fb4 = 4 Then Let fig4b$ = "h"
5613 If fb4 = 5 Then Let fig4b$ = "b"
5614 If fb4 = 6 Then Let fig4b$ = "c"
5616 Dim table(8, 8) As String
5617 Let table(fw1y, fw1x) = fig1w$
5618 Let table(fb1y, fb1x) = fig1b$
5619 Let table(fw2y, fw2x) = fig2w$
5620 Let table(fb2y, fb2x) = fig2b$
5621 Let table(fw3y, fw3x) = fig3w$
5622 Let table(fb3y, fb3x) = fig3b$
5623 Let table(fw4y, fw4x) = fig4w$
5624 Let table(fb4y, fb4x) = fig4b$
5625 For row = 1 To 8: For col = 1 To 8
5626 If table(row, col) = "" Then Let table(row, col) = "+"
5629 Let mas1$ = table(1, 1) + table(1, 2) + table(1, 3) + table(1, 4) + table(1, 5) + table(1, 6) + table(1, 7) + table(1, 8)
5633 If index = 8 And Mid$(mas1$, index, 1) = "+" Then
5635 lin1$ = lin1$ + LTrim$(Str$(count))
5637 If index < 8 And Mid$(mas1$, index, 1) = "+" Then
5640 If Mid$(mas1$, index, 1) <> "+" And count = 0 Then
5641 lin1$ = lin1$ + Mid$(mas1$, index, 1)
5643 If Mid$(mas1$, index, 1) <> "+" And count > 0 Then
5644 lin1$ = lin1$ + LTrim$(Str$(count))
5645 lin1$ = lin1$ + Mid$(mas1$, index, 1)
5650 Let mas2$ = table(2, 1) + table(2, 2) + table(2, 3) + table(2, 4) + table(2, 5) + table(2, 6) + table(2, 7) + table(2, 8)
5654 If index = 8 And Mid$(mas2$, index, 1) = "+" Then
5656 lin2$ = lin2$ + LTrim$(Str$(count))
5658 If index < 8 And Mid$(mas2$, index, 1) = "+" Then
5661 If Mid$(mas2$, index, 1) <> "+" And count = 0 Then
5662 lin2$ = lin2$ + Mid$(mas2$, index, 1)
5664 If Mid$(mas2$, index, 1) <> "+" And count > 0 Then
5665 lin2$ = lin2$ + LTrim$(Str$(count))
5666 lin2$ = lin2$ + Mid$(mas2$, index, 1)
5671 Let mas3$ = table(3, 1) + table(3, 2) + table(3, 3) + table(3, 4) + table(3, 5) + table(3, 6) + table(3, 7) + table(3, 8)
5675 If index = 8 And Mid$(mas3$, index, 1) = "+" Then
5677 lin3$ = lin3$ + LTrim$(Str$(count))
5679 If index < 8 And Mid$(mas3$, index, 1) = "+" Then
5682 If Mid$(mas3$, index, 1) <> "+" And count = 0 Then
5683 lin3$ = lin3$ + Mid$(mas3$, index, 1)
5685 If Mid$(mas3$, index, 1) <> "+" And count > 0 Then
5686 lin3$ = lin3$ + LTrim$(Str$(count))
5687 lin3$ = lin3$ + Mid$(mas3$, index, 1)
5692 Let mas4$ = table(4, 1) + table(4, 2) + table(4, 3) + table(4, 4) + table(4, 5) + table(4, 6) + table(4, 7) + table(4, 8)
5696 If index = 8 And Mid$(mas4$, index, 1) = "+" Then
5698 lin4$ = lin4$ + LTrim$(Str$(count))
5700 If index < 8 And Mid$(mas4$, index, 1) = "+" Then
5703 If Mid$(mas4$, index, 1) <> "+" And count = 0 Then
5704 lin4$ = lin4$ + Mid$(mas4$, index, 1)
5706 If Mid$(mas4$, index, 1) <> "+" And count > 0 Then
5707 lin4$ = lin4$ + LTrim$(Str$(count))
5708 lin4$ = lin4$ + Mid$(mas4$, index, 1)
5713 Let mas5$ = table(5, 1) + table(5, 2) + table(5, 3) + table(5, 4) + table(5, 5) + table(5, 6) + table(5, 7) + table(5, 8)
5717 If index = 8 And Mid$(mas5$, index, 1) = "+" Then
5719 lin5$ = lin5$ + LTrim$(Str$(count))
5721 If index < 8 And Mid$(mas5$, index, 1) = "+" Then
5724 If Mid$(mas5$, index, 1) <> "+" And count = 0 Then
5725 lin5$ = lin5$ + Mid$(mas5$, index, 1)
5727 If Mid$(mas5$, index, 1) <> "+" And count > 0 Then
5728 lin5$ = lin5$ + LTrim$(Str$(count))
5729 lin5$ = lin5$ + Mid$(mas5$, index, 1)
5734 Let mas6$ = table(6, 1) + table(6, 2) + table(6, 3) + table(6, 4) + table(6, 5) + table(6, 6) + table(6, 7) + table(6, 8)
5738 If index = 8 And Mid$(mas6$, index, 1) = "+" Then
5740 lin6$ = lin6$ + LTrim$(Str$(count))
5742 If index < 8 And Mid$(mas6$, index, 1) = "+" Then
5745 If Mid$(mas6$, index, 1) <> "+" And count = 0 Then
5746 lin6$ = lin6$ + Mid$(mas6$, index, 1)
5748 If Mid$(mas6$, index, 1) <> "+" And count > 0 Then
5749 lin6$ = lin6$ + LTrim$(Str$(count))
5750 lin6$ = lin6$ + Mid$(mas6$, index, 1)
5755 Let mas7$ = table(7, 1) + table(7, 2) + table(7, 3) + table(7, 4) + table(7, 5) + table(7, 6) + table(7, 7) + table(7, 8)
5759 If index = 8 And Mid$(mas7$, index, 1) = "+" Then
5761 lin7$ = lin7$ + LTrim$(Str$(count))
5763 If index < 8 And Mid$(mas7$, index, 1) = "+" Then
5766 If Mid$(mas7$, index, 1) <> "+" And count = 0 Then
5767 lin7$ = lin7$ + Mid$(mas7$, index, 1)
5769 If Mid$(mas7$, index, 1) <> "+" And count > 0 Then
5770 lin7$ = lin7$ + LTrim$(Str$(count))
5771 lin7$ = lin7$ + Mid$(mas7$, index, 1)
5776 Let mas8$ = table(8, 1) + table(8, 2) + table(8, 3) + table(8, 4) + table(8, 5) + table(8, 6) + table(8, 7) + table(8, 8)
5780 If index = 8 And Mid$(mas8$, index, 1) = "+" Then
5782 lin8$ = lin8$ + LTrim$(Str$(count))
5784 If index < 8 And Mid$(mas8$, index, 1) = "+" Then
5787 If Mid$(mas8$, index, 1) <> "+" And count = 0 Then
5788 lin8$ = lin8$ + Mid$(mas8$, index, 1)
5790 If Mid$(mas8$, index, 1) <> "+" And count > 0 Then
5791 lin8$ = lin8$ + LTrim$(Str$(count))
5792 lin8$ = lin8$ + Mid$(mas8$, index, 1)
5797 Let fen$ = lin8$ + "/" + lin7$ + "/" + lin6$ + "/" + lin5$ + "/" + lin4$ + "/" + lin3$ + "/" + lin2$ + "/" + lin1$
5800 Locate 2, 1: Print " Press any key to display the Forsyth-Edwards notation "
5802 Loop Until InKey$ <> ""
5803 Locate 2, 1: Print " "
5805 Locate 2, 28: Print fen$
5808 Loop Until InKey$ <> ""
5816 Rem Forsyth-Edwards notation
5818 If fw1 = 1 Then Let fig1w$ = "K"
5819 If fw1 = 2 Then Let fig1w$ = "A"
5820 If fw1 = 3 Then Let fig1w$ = "E"
5821 If fw1 = 4 Then Let fig1w$ = "H"
5822 If fw1 = 5 Then Let fig1w$ = "R"
5823 If fw1 = 6 Then Let fig1w$ = "C"
5824 If fw1 = 7 Then Let fig1w$ = "P"
5826 If fb1 = 1 Then Let fig1b$ = "k"
5827 If fb1 = 2 Then Let fig1b$ = "a"
5828 If fb1 = 3 Then Let fig1b$ = "e"
5829 If fb1 = 4 Then Let fig1b$ = "h"
5830 If fb1 = 5 Then Let fig1b$ = "r"
5831 If fb1 = 6 Then Let fig1b$ = "c"
5832 If fb1 = 7 Then Let fig1w$ = "p"
5834 If fw2 = 1 Then Let fig2w$ = "K"
5835 If fw2 = 2 Then Let fig2w$ = "A"
5836 If fw2 = 3 Then Let fig2w$ = "E"
5837 If fw2 = 4 Then Let fig2w$ = "H"
5838 If fw2 = 5 Then Let fig2w$ = "R"
5839 If fw2 = 6 Then Let fig2w$ = "C"
5840 If fw2 = 7 Then Let fig2w$ = "P"
5842 If fb2 = 1 Then Let fig2b$ = "k"
5843 If fb2 = 2 Then Let fig2b$ = "a"
5844 If fb2 = 3 Then Let fig2b$ = "e"
5845 If fb2 = 4 Then Let fig2b$ = "h"
5846 If fb2 = 5 Then Let fig2b$ = "r"
5847 If fb2 = 6 Then Let fig2b$ = "c"
5848 If fb2 = 7 Then Let fig2w$ = "p"
5850 If fw3 = 1 Then Let fig3w$ = "K"
5851 If fw3 = 2 Then Let fig3w$ = "A"
5852 If fw3 = 3 Then Let fig3w$ = "E"
5853 If fw3 = 4 Then Let fig3w$ = "H"
5854 If fw3 = 5 Then Let fig3w$ = "R"
5855 If fw3 = 6 Then Let fig3w$ = "C"
5856 If fw3 = 7 Then Let fig3w$ = "P"
5858 If fb3 = 1 Then Let fig3b$ = "k"
5859 If fb3 = 2 Then Let fig3b$ = "a"
5860 If fb3 = 3 Then Let fig3b$ = "e"
5861 If fb3 = 4 Then Let fig3b$ = "h"
5862 If fb3 = 5 Then Let fig3b$ = "r"
5863 If fb3 = 6 Then Let fig3b$ = "c"
5864 If fb3 = 7 Then Let fig3w$ = "p"
5866 If fw4 = 1 Then Let fig4w$ = "K"
5867 If fw4 = 2 Then Let fig4w$ = "A"
5868 If fw4 = 3 Then Let fig4w$ = "E"
5869 If fw4 = 4 Then Let fig4w$ = "H"
5870 If fw4 = 5 Then Let fig4w$ = "R"
5871 If fw4 = 6 Then Let fig4w$ = "C"
5872 If fw4 = 7 Then Let fig4w$ = "P"
5874 If fb4 = 1 Then Let fig4b$ = "k"
5875 If fb4 = 2 Then Let fig4b$ = "a"
5876 If fb4 = 3 Then Let fig4b$ = "e"
5877 If fb4 = 4 Then Let fig4b$ = "h"
5878 If fb4 = 5 Then Let fig4b$ = "r"
5879 If fb4 = 6 Then Let fig4b$ = "c"
5880 If fb4 = 7 Then Let fig4w$ = "p"
5882 Dim table(10, 9) As String
5883 Let table(fw1y, fw1x) = fig1w$
5884 Let table(fb1y, fb1x) = fig1b$
5885 Let table(fw2y, fw2x) = fig2w$
5886 Let table(fb2y, fb2x) = fig2b$
5887 Let table(fw3y, fw3x) = fig3w$
5888 Let table(fb3y, fb3x) = fig3b$
5889 Let table(fw4y, fw4x) = fig4w$
5890 Let table(fb4y, fb4x) = fig4b$
5891 For row = 1 To 10: For col = 1 To 9
5892 If table(row, col) = "" Then Let table(row, col) = "+"
5895 Let mas1$ = table(1, 1) + table(1, 2) + table(1, 3) + table(1, 4) + table(1, 5) + table(1, 6) + table(1, 7) + table(1, 8) + table(1, 9)
5899 If index = 9 And Mid$(mas1$, index, 1) = "+" Then
5901 lin1$ = lin1$ + LTrim$(Str$(count))
5903 If index < 9 And Mid$(mas1$, index, 1) = "+" Then
5906 If Mid$(mas1$, index, 1) <> "+" And count = 0 Then
5907 lin1$ = lin1$ + Mid$(mas1$, index, 1)
5909 If Mid$(mas1$, index, 1) <> "+" And count > 0 Then
5910 lin1$ = lin1$ + LTrim$(Str$(count))
5911 lin1$ = lin1$ + Mid$(mas1$, index, 1)
5916 Let mas2$ = table(2, 1) + table(2, 2) + table(2, 3) + table(2, 4) + table(2, 5) + table(2, 6) + table(2, 7) + table(2, 8) + table(2, 9)
5920 If index = 9 And Mid$(mas2$, index, 1) = "+" Then
5922 lin2$ = lin2$ + LTrim$(Str$(count))
5924 If index < 9 And Mid$(mas2$, index, 1) = "+" Then
5927 If Mid$(mas2$, index, 1) <> "+" And count = 0 Then
5928 lin2$ = lin2$ + Mid$(mas2$, index, 1)
5930 If Mid$(mas2$, index, 1) <> "+" And count > 0 Then
5931 lin2$ = lin2$ + LTrim$(Str$(count))
5932 lin2$ = lin2$ + Mid$(mas2$, index, 1)
5937 Let mas3$ = table(3, 1) + table(3, 2) + table(3, 3) + table(3, 4) + table(3, 5) + table(3, 6) + table(3, 7) + table(3, 8) + table(3, 9)
5941 If index = 9 And Mid$(mas3$, index, 1) = "+" Then
5943 lin3$ = lin3$ + LTrim$(Str$(count))
5945 If index < 9 And Mid$(mas3$, index, 1) = "+" Then
5948 If Mid$(mas3$, index, 1) <> "+" And count = 0 Then
5949 lin3$ = lin3$ + Mid$(mas3$, index, 1)
5951 If Mid$(mas3$, index, 1) <> "+" And count > 0 Then
5952 lin3$ = lin3$ + LTrim$(Str$(count))
5953 lin3$ = lin3$ + Mid$(mas3$, index, 1)
5958 Let mas4$ = table(4, 1) + table(4, 2) + table(4, 3) + table(4, 4) + table(4, 5) + table(4, 6) + table(4, 7) + table(4, 8) + table(4, 9)
5962 If index = 9 And Mid$(mas4$, index, 1) = "+" Then
5964 lin4$ = lin4$ + LTrim$(Str$(count))
5966 If index < 9 And Mid$(mas4$, index, 1) = "+" Then
5969 If Mid$(mas4$, index, 1) <> "+" And count = 0 Then
5970 lin4$ = lin4$ + Mid$(mas4$, index, 1)
5972 If Mid$(mas4$, index, 1) <> "+" And count > 0 Then
5973 lin4$ = lin4$ + LTrim$(Str$(count))
5974 lin4$ = lin4$ + Mid$(mas4$, index, 1)
5979 Let mas5$ = table(5, 1) + table(5, 2) + table(5, 3) + table(5, 4) + table(5, 5) + table(5, 6) + table(5, 7) + table(5, 8) + table(5, 9)
5983 If index = 9 And Mid$(mas5$, index, 1) = "+" Then
5985 lin5$ = lin5$ + LTrim$(Str$(count))
5987 If index < 9 And Mid$(mas5$, index, 1) = "+" Then
5990 If Mid$(mas5$, index, 1) <> "+" And count = 0 Then
5991 lin5$ = lin5$ + Mid$(mas5$, index, 1)
5993 If Mid$(mas5$, index, 1) <> "+" And count > 0 Then
5994 lin5$ = lin5$ + LTrim$(Str$(count))
5995 lin5$ = lin5$ + Mid$(mas5$, index, 1)
6000 Let mas6$ = table(6, 1) + table(6, 2) + table(6, 3) + table(6, 4) + table(6, 5) + table(6, 6) + table(6, 7) + table(6, 8) + table(6, 9)
6004 If index = 9 And Mid$(mas6$, index, 1) = "+" Then
6006 lin6$ = lin6$ + LTrim$(Str$(count))
6008 If index < 9 And Mid$(mas6$, index, 1) = "+" Then
6011 If Mid$(mas6$, index, 1) <> "+" And count = 0 Then
6012 lin6$ = lin6$ + Mid$(mas6$, index, 1)
6014 If Mid$(mas6$, index, 1) <> "+" And count > 0 Then
6015 lin6$ = lin6$ + LTrim$(Str$(count))
6016 lin6$ = lin6$ + Mid$(mas6$, index, 1)
6021 Let mas7$ = table(7, 1) + table(7, 2) + table(7, 3) + table(7, 4) + table(7, 5) + table(7, 6) + table(7, 7) + table(7, 8) + table(7, 9)
6025 If index = 9 And Mid$(mas7$, index, 1) = "+" Then
6027 lin7$ = lin7$ + LTrim$(Str$(count))
6029 If index < 9 And Mid$(mas7$, index, 1) = "+" Then
6032 If Mid$(mas7$, index, 1) <> "+" And count = 0 Then
6033 lin7$ = lin7$ + Mid$(mas7$, index, 1)
6035 If Mid$(mas7$, index, 1) <> "+" And count > 0 Then
6036 lin7$ = lin7$ + LTrim$(Str$(count))
6037 lin7$ = lin7$ + Mid$(mas7$, index, 1)
6042 Let mas8$ = table(8, 1) + table(8, 2) + table(8, 3) + table(8, 4) + table(8, 5) + table(8, 6) + table(8, 7) + table(8, 8) + table(8, 9)
6046 If index = 9 And Mid$(mas8$, index, 1) = "+" Then
6048 lin8$ = lin8$ + LTrim$(Str$(count))
6050 If index < 9 And Mid$(mas8$, index, 1) = "+" Then
6053 If Mid$(mas8$, index, 1) <> "+" And count = 0 Then
6054 lin8$ = lin8$ + Mid$(mas8$, index, 1)
6056 If Mid$(mas8$, index, 1) <> "+" And count > 0 Then
6057 lin8$ = lin8$ + LTrim$(Str$(count))
6058 lin8$ = lin8$ + Mid$(mas8$, index, 1)
6063 Let mas9$ = table(9, 1) + table(9, 2) + table(9, 3) + table(9, 4) + table(9, 5) + table(9, 6) + table(9, 7) + table(9, 8) + table(9, 9)
6067 If index = 9 And Mid$(mas9$, index, 1) = "+" Then
6069 lin9$ = lin9$ + LTrim$(Str$(count))
6071 If index < 9 And Mid$(mas9$, index, 1) = "+" Then
6074 If Mid$(mas9$, index, 1) <> "+" And count = 0 Then
6075 lin9$ = lin9$ + Mid$(mas9$, index, 1)
6077 If Mid$(mas9$, index, 1) <> "+" And count > 0 Then
6078 lin9$ = lin9$ + LTrim$(Str$(count))
6079 lin9$ = lin9$ + Mid$(mas9$, index, 1)
6084 Let mas0$ = table(10, 1) + table(10, 2) + table(10, 3) + table(10, 4) + table(10, 5) + table(10, 6) + table(10, 7) + table(10, 8) + table(10, 9)
6088 If index = 9 And Mid$(mas0$, index, 1) = "+" Then
6090 lin0$ = lin0$ + LTrim$(Str$(count))
6092 If index < 9 And Mid$(mas0$, index, 1) = "+" Then
6095 If Mid$(mas0$, index, 1) <> "+" And count = 0 Then
6096 lin0$ = lin0$ + Mid$(mas0$, index, 1)
6098 If Mid$(mas0$, index, 1) <> "+" And count > 0 Then
6099 lin0$ = lin0$ + LTrim$(Str$(count))
6100 lin0$ = lin0$ + Mid$(mas0$, index, 1)
6105 Let fen$ = lin0$ + "/" + lin9$ + "/" + lin8$ + "/" + lin7$ + "/" + lin6$ + "/" + lin5$ + "/" + lin4$ + "/" + lin3$ + "/" + lin2$ + "/" + lin1$
6108 Locate 2, 1: Print " Press any key to display the Forsyth-Edwards notation "
6110 Loop Until InKey$ <> ""
6111 Locate 2, 1: Print " "
6113 Locate 2, 24: Print fen$
6116 Loop Until InKey$ <> ""
6124 Rem Forsyth-Edwards notation
6126 If fw1 = 1 Then Let fig1w$ = "K"
6127 If fw1 = 2 Then Let fig1w$ = "G"
6128 If fw1 = 3 Then Let fig1w$ = "S"
6129 If fw1 = 4 Then Let fig1w$ = "B"
6130 If fw1 = 5 Then Let fig1w$ = "N"
6131 If fw1 = 6 Then Let fig1w$ = "R"
6132 If fw1 = 7 Then Let fig1w$ = "L"
6133 If fw1 = 8 Then Let fig1w$ = "P"
6134 If fw1 = 9 Then Let fig1w$ = "H"
6135 If fw1 = 10 Then Let fig1w$ = "D"
6136 If fw1 = 11 Then Let fig1w$ = "T"
6138 If fb1 = 1 Then Let fig1b$ = "k"
6139 If fb1 = 2 Then Let fig1b$ = "g"
6140 If fb1 = 3 Then Let fig1b$ = "a"
6141 If fb1 = 4 Then Let fig1b$ = "b"
6142 If fb1 = 5 Then Let fig1b$ = "n"
6143 If fb1 = 6 Then Let fig1b$ = "r"
6144 If fb1 = 7 Then Let fig1b$ = "l"
6145 If fb1 = 8 Then Let fig1b$ = "p"
6146 If fb1 = 9 Then Let fig1b$ = "h"
6147 If fb1 = 10 Then Let fig1b$ = "d"
6148 If fb1 = 11 Then Let fig1b$ = "t"
6150 If fw2 = 1 Then Let fig2w$ = "K"
6151 If fw2 = 2 Then Let fig2w$ = "G"
6152 If fw2 = 3 Then Let fig2w$ = "S"
6153 If fw2 = 4 Then Let fig2w$ = "B"
6154 If fw2 = 5 Then Let fig2w$ = "N"
6155 If fw2 = 6 Then Let fig2w$ = "R"
6156 If fw2 = 7 Then Let fig2w$ = "L"
6157 If fw2 = 8 Then Let fig2w$ = "P"
6158 If fw2 = 9 Then Let fig2w$ = "H"
6159 If fw2 = 20 Then Let fig2w$ = "D"
6160 If fw2 = 22 Then Let fig2w$ = "T"
6162 If fb2 = 1 Then Let fig2b$ = "k"
6163 If fb2 = 2 Then Let fig2b$ = "g"
6164 If fb2 = 3 Then Let fig2b$ = "a"
6165 If fb2 = 4 Then Let fig2b$ = "b"
6166 If fb2 = 5 Then Let fig2b$ = "n"
6167 If fb2 = 6 Then Let fig2b$ = "r"
6168 If fb2 = 7 Then Let fig2b$ = "l"
6169 If fb2 = 8 Then Let fig2b$ = "p"
6170 If fb2 = 9 Then Let fig2b$ = "h"
6171 If fb2 = 20 Then Let fig2b$ = "d"
6172 If fb2 = 22 Then Let fig2b$ = "t"
6174 If fw3 = 1 Then Let fig3w$ = "K"
6175 If fw3 = 2 Then Let fig3w$ = "G"
6176 If fw3 = 3 Then Let fig3w$ = "S"
6177 If fw3 = 4 Then Let fig3w$ = "B"
6178 If fw3 = 5 Then Let fig3w$ = "N"
6179 If fw3 = 6 Then Let fig3w$ = "R"
6180 If fw3 = 7 Then Let fig3w$ = "L"
6181 If fw3 = 8 Then Let fig3w$ = "P"
6182 If fw3 = 9 Then Let fig3w$ = "H"
6183 If fw3 = 30 Then Let fig3w$ = "D"
6184 If fw3 = 33 Then Let fig3w$ = "T"
6186 If fb3 = 1 Then Let fig3b$ = "k"
6187 If fb3 = 2 Then Let fig3b$ = "g"
6188 If fb3 = 3 Then Let fig3b$ = "a"
6189 If fb3 = 4 Then Let fig3b$ = "b"
6190 If fb3 = 5 Then Let fig3b$ = "n"
6191 If fb3 = 6 Then Let fig3b$ = "r"
6192 If fb3 = 7 Then Let fig3b$ = "l"
6193 If fb3 = 8 Then Let fig3b$ = "p"
6194 If fb3 = 9 Then Let fig3b$ = "h"
6195 If fb3 = 30 Then Let fig3b$ = "d"
6196 If fb3 = 33 Then Let fig3b$ = "t"
6198 If fw4 = 1 Then Let fig4w$ = "K"
6199 If fw4 = 2 Then Let fig4w$ = "G"
6200 If fw4 = 3 Then Let fig4w$ = "S"
6201 If fw4 = 4 Then Let fig4w$ = "B"
6202 If fw4 = 5 Then Let fig4w$ = "N"
6203 If fw4 = 6 Then Let fig4w$ = "R"
6204 If fw4 = 7 Then Let fig4w$ = "L"
6205 If fw4 = 8 Then Let fig4w$ = "P"
6206 If fw4 = 9 Then Let fig4w$ = "H"
6207 If fw4 = 40 Then Let fig4w$ = "D"
6208 If fw4 = 44 Then Let fig4w$ = "T"
6210 If fb4 = 1 Then Let fig4b$ = "k"
6211 If fb4 = 2 Then Let fig4b$ = "g"
6212 If fb4 = 3 Then Let fig4b$ = "a"
6213 If fb4 = 4 Then Let fig4b$ = "b"
6214 If fb4 = 5 Then Let fig4b$ = "n"
6215 If fb4 = 6 Then Let fig4b$ = "r"
6216 If fb4 = 7 Then Let fig4b$ = "l"
6217 If fb4 = 8 Then Let fig4b$ = "p"
6218 If fb4 = 9 Then Let fig4b$ = "h"
6219 If fb4 = 40 Then Let fig4b$ = "d"
6220 If fb4 = 44 Then Let fig4b$ = "t"
6222 Dim table(9, 9) As String
6223 Let table(fw1y, fw1x) = fig1w$
6224 Let table(fb1y, fb1x) = fig1b$
6225 Let table(fw2y, fw2x) = fig2w$
6226 Let table(fb2y, fb2x) = fig2b$
6227 Let table(fw3y, fw3x) = fig3w$
6228 Let table(fb3y, fb3x) = fig3b$
6229 Let table(fw4y, fw4x) = fig4w$
6230 Let table(fb4y, fb4x) = fig4b$
6231 For row = 1 To 9: For col = 1 To 9
6232 If table(row, col) = "" Then Let table(row, col) = "+"
6235 Let mas1$ = table(1, 1) + table(1, 2) + table(1, 3) + table(1, 4) + table(1, 5) + table(1, 6) + table(1, 7) + table(1, 8) + table(1, 9)
6239 If index = 9 And Mid$(mas1$, index, 1) = "+" Then
6241 lin1$ = lin1$ + LTrim$(Str$(count))
6243 If index < 9 And Mid$(mas1$, index, 1) = "+" Then
6246 If Mid$(mas1$, index, 1) <> "+" And count = 0 Then
6247 lin1$ = lin1$ + Mid$(mas1$, index, 1)
6249 If Mid$(mas1$, index, 1) <> "+" And count > 0 Then
6250 lin1$ = lin1$ + LTrim$(Str$(count))
6251 lin1$ = lin1$ + Mid$(mas1$, index, 1)
6256 Let mas2$ = table(2, 1) + table(2, 2) + table(2, 3) + table(2, 4) + table(2, 5) + table(2, 6) + table(2, 7) + table(2, 8) + table(2, 9)
6260 If index = 9 And Mid$(mas2$, index, 1) = "+" Then
6262 lin2$ = lin2$ + LTrim$(Str$(count))
6264 If index < 9 And Mid$(mas2$, index, 1) = "+" Then
6267 If Mid$(mas2$, index, 1) <> "+" And count = 0 Then
6268 lin2$ = lin2$ + Mid$(mas2$, index, 1)
6270 If Mid$(mas2$, index, 1) <> "+" And count > 0 Then
6271 lin2$ = lin2$ + LTrim$(Str$(count))
6272 lin2$ = lin2$ + Mid$(mas2$, index, 1)
6277 Let mas3$ = table(3, 1) + table(3, 2) + table(3, 3) + table(3, 4) + table(3, 5) + table(3, 6) + table(3, 7) + table(3, 8) + table(3, 9)
6281 If index = 9 And Mid$(mas3$, index, 1) = "+" Then
6283 lin3$ = lin3$ + LTrim$(Str$(count))
6285 If index < 9 And Mid$(mas3$, index, 1) = "+" Then
6288 If Mid$(mas3$, index, 1) <> "+" And count = 0 Then
6289 lin3$ = lin3$ + Mid$(mas3$, index, 1)
6291 If Mid$(mas3$, index, 1) <> "+" And count > 0 Then
6292 lin3$ = lin3$ + LTrim$(Str$(count))
6293 lin3$ = lin3$ + Mid$(mas3$, index, 1)
6298 Let mas4$ = table(4, 1) + table(4, 2) + table(4, 3) + table(4, 4) + table(4, 5) + table(4, 6) + table(4, 7) + table(4, 8) + table(4, 9)
6302 If index = 9 And Mid$(mas4$, index, 1) = "+" Then
6304 lin4$ = lin4$ + LTrim$(Str$(count))
6306 If index < 9 And Mid$(mas4$, index, 1) = "+" Then
6309 If Mid$(mas4$, index, 1) <> "+" And count = 0 Then
6310 lin4$ = lin4$ + Mid$(mas4$, index, 1)
6312 If Mid$(mas4$, index, 1) <> "+" And count > 0 Then
6313 lin4$ = lin4$ + LTrim$(Str$(count))
6314 lin4$ = lin4$ + Mid$(mas4$, index, 1)
6319 Let mas5$ = table(5, 1) + table(5, 2) + table(5, 3) + table(5, 4) + table(5, 5) + table(5, 6) + table(5, 7) + table(5, 8) + table(5, 9)
6323 If index = 9 And Mid$(mas5$, index, 1) = "+" Then
6325 lin5$ = lin5$ + LTrim$(Str$(count))
6327 If index < 9 And Mid$(mas5$, index, 1) = "+" Then
6330 If Mid$(mas5$, index, 1) <> "+" And count = 0 Then
6331 lin5$ = lin5$ + Mid$(mas5$, index, 1)
6333 If Mid$(mas5$, index, 1) <> "+" And count > 0 Then
6334 lin5$ = lin5$ + LTrim$(Str$(count))
6335 lin5$ = lin5$ + Mid$(mas5$, index, 1)
6340 Let mas6$ = table(6, 1) + table(6, 2) + table(6, 3) + table(6, 4) + table(6, 5) + table(6, 6) + table(6, 7) + table(6, 8) + table(6, 9)
6344 If index = 9 And Mid$(mas6$, index, 1) = "+" Then
6346 lin6$ = lin6$ + LTrim$(Str$(count))
6348 If index < 9 And Mid$(mas6$, index, 1) = "+" Then
6351 If Mid$(mas6$, index, 1) <> "+" And count = 0 Then
6352 lin6$ = lin6$ + Mid$(mas6$, index, 1)
6354 If Mid$(mas6$, index, 1) <> "+" And count > 0 Then
6355 lin6$ = lin6$ + LTrim$(Str$(count))
6356 lin6$ = lin6$ + Mid$(mas6$, index, 1)
6361 Let mas7$ = table(7, 1) + table(7, 2) + table(7, 3) + table(7, 4) + table(7, 5) + table(7, 6) + table(7, 7) + table(7, 8) + table(7, 9)
6365 If index = 9 And Mid$(mas7$, index, 1) = "+" Then
6367 lin7$ = lin7$ + LTrim$(Str$(count))
6369 If index < 9 And Mid$(mas7$, index, 1) = "+" Then
6372 If Mid$(mas7$, index, 1) <> "+" And count = 0 Then
6373 lin7$ = lin7$ + Mid$(mas7$, index, 1)
6375 If Mid$(mas7$, index, 1) <> "+" And count > 0 Then
6376 lin7$ = lin7$ + LTrim$(Str$(count))
6377 lin7$ = lin7$ + Mid$(mas7$, index, 1)
6382 Let mas8$ = table(8, 1) + table(8, 2) + table(8, 3) + table(8, 4) + table(8, 5) + table(8, 6) + table(8, 7) + table(8, 8) + table(8, 9)
6386 If index = 9 And Mid$(mas8$, index, 1) = "+" Then
6388 lin8$ = lin8$ + LTrim$(Str$(count))
6390 If index < 9 And Mid$(mas8$, index, 1) = "+" Then
6393 If Mid$(mas8$, index, 1) <> "+" And count = 0 Then
6394 lin8$ = lin8$ + Mid$(mas8$, index, 1)
6396 If Mid$(mas8$, index, 1) <> "+" And count > 0 Then
6397 lin8$ = lin8$ + LTrim$(Str$(count))
6398 lin8$ = lin8$ + Mid$(mas8$, index, 1)
6403 Let mas9$ = table(9, 1) + table(9, 2) + table(9, 3) + table(9, 4) + table(9, 5) + table(9, 6) + table(9, 7) + table(9, 8) + table(9, 9)
6407 If index = 9 And Mid$(mas9$, index, 1) = "+" Then
6409 lin9$ = lin9$ + LTrim$(Str$(count))
6411 If index < 9 And Mid$(mas9$, index, 1) = "+" Then
6414 If Mid$(mas9$, index, 1) <> "+" And count = 0 Then
6415 lin9$ = lin9$ + Mid$(mas9$, index, 1)
6417 If Mid$(mas9$, index, 1) <> "+" And count > 0 Then
6418 lin9$ = lin9$ + LTrim$(Str$(count))
6419 lin9$ = lin9$ + Mid$(mas9$, index, 1)
6424 Let fen$ = lin9$ + "/" + lin8$ + "/" + lin7$ + "/" + lin6$ + "/" + lin5$ + "/" + lin4$ + "/" + lin3$ + "/" + lin2$ + "/" + lin1$
6427 Locate 2, 1: Print " Press any key to display the Forsyth-Edwards notation "
6429 Loop Until InKey$ <> ""
6430 Locate 2, 1: Print " "
6432 Locate 2, 25: Print fen$
6435 Loop Until InKey$ <> ""
6443 Rem Forsyth-Edwards notation
6445 If fw1 = 1 Then Let fig1w$ = "D"
6446 If fw1 = 2 Then Let fig1w$ = "C"
6448 If fb1 = 1 Then Let fig1b$ = "d"
6449 If fb1 = 2 Then Let fig1b$ = "c"
6451 If fw2 = 1 Then Let fig2w$ = "D"
6452 If fw2 = 2 Then Let fig2w$ = "C"
6454 If fb2 = 1 Then Let fig2b$ = "d"
6455 If fb2 = 2 Then Let fig2b$ = "c"
6457 If fw3 = 1 Then Let fig3w$ = "D"
6458 If fw3 = 2 Then Let fig3w$ = "C"
6460 If fb3 = 1 Then Let fig3b$ = "d"
6461 If fb3 = 2 Then Let fig3b$ = "c"
6463 If fw4 = 1 Then Let fig4w$ = "D"
6464 If fw4 = 2 Then Let fig4w$ = "C"
6466 If fb4 = 1 Then Let fig4b$ = "d"
6467 If fb4 = 2 Then Let fig4b$ = "c"
6469 Dim table(10, 10) As String
6470 Let table(fw1y, fw1x) = fig1w$
6471 Let table(fb1y, fb1x) = fig1b$
6472 Let table(fw2y, fw2x) = fig2w$
6473 Let table(fb2y, fb2x) = fig2b$
6474 Let table(fw3y, fw3x) = fig3w$
6475 Let table(fb3y, fb3x) = fig3b$
6476 Let table(fw4y, fw4x) = fig4w$
6477 Let table(fb4y, fb4x) = fig4b$
6478 For row = 1 To 10: For col = 1 To 10
6479 If table(row, col) = "" Then Let table(row, col) = "+"
6482 Let mas1$ = table(1, 1) + table(1, 2) + table(1, 3) + table(1, 4) + table(1, 5) + table(1, 6) + table(1, 7) + table(1, 8) + table(1, 9) + table(1, 10)
6486 If index = 10 And Mid$(mas1$, index, 1) = "+" Then
6488 lin1$ = lin1$ + LTrim$(Str$(count))
6490 If index < 10 And Mid$(mas1$, index, 1) = "+" Then
6493 If Mid$(mas1$, index, 1) <> "+" And count = 0 Then
6494 lin1$ = lin1$ + Mid$(mas1$, index, 1)
6496 If Mid$(mas1$, index, 1) <> "+" And count > 0 Then
6497 lin1$ = lin1$ + LTrim$(Str$(count))
6498 lin1$ = lin1$ + Mid$(mas1$, index, 1)
6503 Let mas2$ = table(2, 1) + table(2, 2) + table(2, 3) + table(2, 4) + table(2, 5) + table(2, 6) + table(2, 7) + table(2, 8) + table(2, 9) + table(2, 10)
6507 If index = 10 And Mid$(mas2$, index, 1) = "+" Then
6509 lin2$ = lin2$ + LTrim$(Str$(count))
6511 If index < 10 And Mid$(mas2$, index, 1) = "+" Then
6514 If Mid$(mas2$, index, 1) <> "+" And count = 0 Then
6515 lin2$ = lin2$ + Mid$(mas2$, index, 1)
6517 If Mid$(mas2$, index, 1) <> "+" And count > 0 Then
6518 lin2$ = lin2$ + LTrim$(Str$(count))
6519 lin2$ = lin2$ + Mid$(mas2$, index, 1)
6524 Let mas3$ = table(3, 1) + table(3, 2) + table(3, 3) + table(3, 4) + table(3, 5) + table(3, 6) + table(3, 7) + table(3, 8) + table(3, 9) + table(3, 10)
6528 If index = 10 And Mid$(mas3$, index, 1) = "+" Then
6530 lin3$ = lin3$ + LTrim$(Str$(count))
6532 If index < 10 And Mid$(mas3$, index, 1) = "+" Then
6535 If Mid$(mas3$, index, 1) <> "+" And count = 0 Then
6536 lin3$ = lin3$ + Mid$(mas3$, index, 1)
6538 If Mid$(mas3$, index, 1) <> "+" And count > 0 Then
6539 lin3$ = lin3$ + LTrim$(Str$(count))
6540 lin3$ = lin3$ + Mid$(mas3$, index, 1)
6545 Let mas4$ = table(4, 1) + table(4, 2) + table(4, 3) + table(4, 4) + table(4, 5) + table(4, 6) + table(4, 7) + table(4, 8) + table(4, 9) + table(4, 10)
6549 If index = 10 And Mid$(mas4$, index, 1) = "+" Then
6551 lin4$ = lin4$ + LTrim$(Str$(count))
6553 If index < 10 And Mid$(mas4$, index, 1) = "+" Then
6556 If Mid$(mas4$, index, 1) <> "+" And count = 0 Then
6557 lin4$ = lin4$ + Mid$(mas4$, index, 1)
6559 If Mid$(mas4$, index, 1) <> "+" And count > 0 Then
6560 lin4$ = lin4$ + LTrim$(Str$(count))
6561 lin4$ = lin4$ + Mid$(mas4$, index, 1)
6566 Let mas5$ = table(5, 1) + table(5, 2) + table(5, 3) + table(5, 4) + table(5, 5) + table(5, 6) + table(5, 7) + table(5, 8) + table(5, 9) + table(5, 10)
6570 If index = 10 And Mid$(mas5$, index, 1) = "+" Then
6572 lin5$ = lin5$ + LTrim$(Str$(count))
6574 If index < 10 And Mid$(mas5$, index, 1) = "+" Then
6577 If Mid$(mas5$, index, 1) <> "+" And count = 0 Then
6578 lin5$ = lin5$ + Mid$(mas5$, index, 1)
6580 If Mid$(mas5$, index, 1) <> "+" And count > 0 Then
6581 lin5$ = lin5$ + LTrim$(Str$(count))
6582 lin5$ = lin5$ + Mid$(mas5$, index, 1)
6587 Let mas6$ = table(6, 1) + table(6, 2) + table(6, 3) + table(6, 4) + table(6, 5) + table(6, 6) + table(6, 7) + table(6, 8) + table(6, 9) + table(6, 10)
6591 If index = 10 And Mid$(mas6$, index, 1) = "+" Then
6593 lin6$ = lin6$ + LTrim$(Str$(count))
6595 If index < 10 And Mid$(mas6$, index, 1) = "+" Then
6598 If Mid$(mas6$, index, 1) <> "+" And count = 0 Then
6599 lin6$ = lin6$ + Mid$(mas6$, index, 1)
6601 If Mid$(mas6$, index, 1) <> "+" And count > 0 Then
6602 lin6$ = lin6$ + LTrim$(Str$(count))
6603 lin6$ = lin6$ + Mid$(mas6$, index, 1)
6608 Let mas7$ = table(7, 1) + table(7, 2) + table(7, 3) + table(7, 4) + table(7, 5) + table(7, 6) + table(7, 7) + table(7, 8) + table(7, 9) + table(7, 10)
6612 If index = 10 And Mid$(mas7$, index, 1) = "+" Then
6614 lin7$ = lin7$ + LTrim$(Str$(count))
6616 If index < 10 And Mid$(mas7$, index, 1) = "+" Then
6619 If Mid$(mas7$, index, 1) <> "+" And count = 0 Then
6620 lin7$ = lin7$ + Mid$(mas7$, index, 1)
6622 If Mid$(mas7$, index, 1) <> "+" And count > 0 Then
6623 lin7$ = lin7$ + LTrim$(Str$(count))
6624 lin7$ = lin7$ + Mid$(mas7$, index, 1)
6629 Let mas8$ = table(8, 1) + table(8, 2) + table(8, 3) + table(8, 4) + table(8, 5) + table(8, 6) + table(8, 7) + table(8, 8) + table(8, 9) + table(8, 10)
6633 If index = 10 And Mid$(mas8$, index, 1) = "+" Then
6635 lin8$ = lin8$ + LTrim$(Str$(count))
6637 If index < 10 And Mid$(mas8$, index, 1) = "+" Then
6640 If Mid$(mas8$, index, 1) <> "+" And count = 0 Then
6641 lin8$ = lin8$ + Mid$(mas8$, index, 1)
6643 If Mid$(mas8$, index, 1) <> "+" And count > 0 Then
6644 lin8$ = lin8$ + LTrim$(Str$(count))
6645 lin8$ = lin8$ + Mid$(mas8$, index, 1)
6650 Let mas9$ = table(9, 1) + table(9, 2) + table(9, 3) + table(9, 4) + table(9, 5) + table(9, 6) + table(9, 7) + table(9, 8) + table(9, 9) + table(9, 10)
6654 If index = 10 And Mid$(mas9$, index, 1) = "+" Then
6656 lin9$ = lin9$ + LTrim$(Str$(count))
6658 If index < 10 And Mid$(mas9$, index, 1) = "+" Then
6661 If Mid$(mas9$, index, 1) <> "+" And count = 0 Then
6662 lin9$ = lin9$ + Mid$(mas9$, index, 1)
6664 If Mid$(mas9$, index, 1) <> "+" And count > 0 Then
6665 lin9$ = lin9$ + LTrim$(Str$(count))
6666 lin9$ = lin9$ + Mid$(mas9$, index, 1)
6671 Let mas0$ = table(10, 1) + table(10, 2) + table(10, 3) + table(10, 4) + table(10, 5) + table(10, 6) + table(10, 7) + table(10, 8) + table(10, 9) + table(10, 10)
6675 If index = 10 And Mid$(mas0$, index, 1) = "+" Then
6677 lin0$ = lin0$ + LTrim$(Str$(count))
6679 If index < 10 And Mid$(mas0$, index, 1) = "+" Then
6682 If Mid$(mas0$, index, 1) <> "+" And count = 0 Then
6683 lin0$ = lin0$ + Mid$(mas0$, index, 1)
6685 If Mid$(mas0$, index, 1) <> "+" And count > 0 Then
6686 lin0$ = lin0$ + LTrim$(Str$(count))
6687 lin0$ = lin0$ + Mid$(mas0$, index, 1)
6692 Let fen$ = lin0$ + "/" + lin9$ + "/" + lin8$ + "/" + lin7$ + "/" + lin6$ + "/" + lin5$ + "/" + lin4$ + "/" + lin3$ + "/" + lin2$ + "/" + lin1$
6695 Locate 2, 1: Print " Press any key to display the Forsyth-Edwards notation "
6697 Loop Until InKey$ <> ""
6698 Locate 2, 1: Print " "
6700 Locate 2, 23: Print fen$
6703 Loop Until InKey$ <> ""
6710 Locate 2, 1: Color 9: Print " SPACEBAR - next pair"; " ENTER - display notation "; "ESCAPE - exit "
6711 Locate 2, 5: Color 5: Print "SPACEBAR": Locate 2, 32: Color 5: Print "ENTER": Locate 2, 63: Color 5: Print "ESCAPE"