ZX Computings - OpenLibra
ZX Computings - OpenLibra
ZX Computings - OpenLibra
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
DRAUGHTS<br />
This is a full game of draughts for the 4K <strong>ZX</strong>80. A complete<br />
board is shown. You are at the bottom of the screen playing up,<br />
and the <strong>ZX</strong>80 is playing down. You enter each move as a<br />
LETTER NUMBER, then NEWLINE, of the square you're<br />
moving from, then LETTER NUMBER, then NEWLINE, of the<br />
square you're moving to. You'll understand this easily once you<br />
see the display. You'll find the <strong>ZX</strong>80 plays like a reasonable<br />
beginner. Once you've played with it for a while, you might<br />
enjoy trying to improve its standard of play.<br />
Although the computer has no strategy as such {other than<br />
look for a capture, and if it can't make one, look for a legal<br />
move) you'll find it plays as though it had a real method of<br />
looking ahead at the game and where it is developing. Kings<br />
are made automatically.<br />
<strong>ZX</strong>80 Games<br />
I<br />
5<br />
6<br />
21<br />
22<br />
2 3<br />
24<br />
25<br />
26<br />
39<br />
40<br />
(in<br />
41<br />
42<br />
4 3<br />
44<br />
45<br />
46<br />
47<br />
48<br />
49<br />
50<br />
GOTO 9000<br />
FOR Z » 6 TO 40<br />
IF Z > 37 AND A(Z) = 1 THEN LET<br />
A(Z) = 2<br />
IF Z < 10 AND A(Z) = - 1 THEN<br />
LET A(Z) » - 2<br />
IF P > 0 THEN LET SI - SI + 1<br />
LET P = 0<br />
IF A(Z) - - 2 THEN LET A(Z) = 188'<br />
IF A(Z) « -1 THEN LET A(Z) - 180<br />
IF A(Z) = 0 THEN LET A(Z) = 128<br />
IF A(Z) » 1 THEN LET A(Z) = 189<br />
IF A(Z) - 2 THEN LET A(Z) » 186<br />
NEXT Z<br />
PRINT ABCDEFGH"<br />
PRINT "2X80 ";SI;"eight shift A"<br />
the next section, 0 equals shift A)<br />
PRINT ," 10 ";CHR$(A(40));" ";CHR$<br />
(A (39)If" ";CHR$(A(38));" ";CHR$<br />
(A ( 37))<br />
PRINT 2&";CHR$ (A(36)) ;" ";CHR»<br />
(A (35));" ";CHR$(A(34)) ;" ";CHR$<br />
(A ( 33) ) "<br />
PRINT 30 ";CHR$ (A(31));" ";CHR$<br />
(A (30));" ";CHR$(A(29)) ;<br />
" ";CHR$(A(28));"0"<br />
PRINT ." 4 0";CHR$(A(27));" ";CHR$<br />
(A(26));" ";CHR$(A(25));" ";CHR$<br />
(A (24));" 0"<br />
PRINT ," 5 0 ";CHR$(A(22));" "CHRf<br />
(A (21));" ";CHR$(A(20));" ";CHR$<br />
(A (19) ) ; " 0"<br />
PRINT ," 6 0";CHR$(A (18)) ;" ";CHR$<br />
(A(17));" ";CHR$(A(16));" ";CHR$<br />
(A (15));" 0"<br />
PRINT ," 7 0 ";CHR$(A(13));" ";CHR$<br />
(A (12));" ";CHR$(A(ll));" ";CHR$<br />
(A (10) ) ; "0"<br />
PRINT ," 80";CHR$ (A (9)) ;" ";CHR$<br />
(A (8));" ";CHR0(A(7));" ";CHR$(A(6)) ;<br />
"<br />
PRINT "HUMAN "/SI/" 00000000"<br />
FOR Z = 6 TO 4 0<br />
80 <strong>ZX</strong> COMPUTING SUMMER 1982