Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape38b_acorn_eu_1992_september.wav » Snake2

Snake2

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape38b_acorn_eu_1992_september.wav
Filename: Snake2
Read OK:
File size: 0D11 bytes
Load address: FFFF1A00
Exec address: FFFF8023
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
    1REM ==SNAKE2
    2REM by Mike Goldberg
    3REM (c) The Micro User
   10ENVELOPE1,1,4,-8,13,20,20,620,127,-1,-4,-4,90,50
   20ENVELOPE2,1,-3,-2,0,10,5,0,127,-1,-2,-3,126,100
   30MODE2
   40VDU19,14,12;0;
   50VDU23;8202;0;0;0;
   60DIMA%(20),B%(20)
   70DIMX%(20),Y%(20)
   80RED%=0:GREEN%=0
   90PROCvdu
  100REPEAT
  110PROCinit
  120PROCscreen
  130REPEAT
  140PROCplace_bits
  150PROCstart
  160REPEAT TT%=TIME+5
  170IFstop%=1AND TIME<q%GOTO230
  180IFstop%=1AND TIME>q%stop%=0:VDU19,1,1;0;
  190PROCone
  200A=INKEY(1)
  210IFstop%=2AND TIME<q%GOTO240
  220IFstop%=2AND TIME>q%stop%=0:VDU19,2,2;0;
  230PROCtwo:REPEATUNTILTIME>TT%
  240UNTILcc%=n% OR v%=840 OR l%=840
  250IFv%=840 OR l%=840 GOTO300
  260n%=n%+2
  270T%=T%+1:t%=t%+1
  280VDU24,96;100;1176;832;:GCOL0,128:CLG
  290VDU26
  300UNTILv%=840 OR l%=840
  310VDU26,4
  320COLOUR3
  330IFv%=840PROCredwin:RED%=RED%+1
  340IFl%=840PROCgreenwin:GREEN%=GREEN%+1
  350PRINTTAB(4,25)"PRESS SPACE"
  360REPEATUNTILGET=32
  370CLS
  380UNTIL0
  390REM ==START
  400DEFPROCstart
  410A%=160:B%=160
  420X%=1088:Y%=160
  430VDU5
  440MOVEA%,B%:PRINTA$
  450MOVEX%,Y%:PRINTX$
  460D%=0:E%=32
  470F%=0:G%=32
  480C%=0:c%=0
  490VDU19,2,2;0;19,1,1;0;:TIME=0
  500cc%=0
  510stop%=0
  520REPEATUNTILGET=32
  530ENDPROC
  540REM ==PLAYER 0NE
  550DEFPROCone
  560IFINKEY-98D%=-M%:E%=0
  570IFINKEY-67D%=M%:E%=0
  580IFINKEY-68D%=0:E%=N%
  590IFINKEY-83D%=0:E%=-N%
  600PROCm1
  610ENDPROC
  620REM ==MOVE ONE
  630DEFPROCm1
  640A%(C%)=A%:B%(C%)=B%
  650IFPOINT(A%+D%,B%+E%)=5MOVEA%+D%,B%+E%:PRINTP$:PROCscore(1,8)
  660IFPOINT(A%+D%,B%+E%)=2PROCscore(1,-8)
  670IFPOINT(A%+D%,B%+E%)=4ENDPROC
  680IFPOINT(A%+D%,B%+E%)=14stop%=2:VDU19,2,10;0;:GCOL0,0:MOVEA%+D%,B%+E%:PRINTp$:GOSUB1760:TIME=0
  690A%=A%+D%:B%=B%+E%
  700MOVEA%,B%:PRINTA$
  710C%=(C%+1)MOD(T%+1)
  720IFC%=T%PROCremove1
  730ENDPROC
  740REM ==PLAYER TWO
  750DEFPROCtwo
  760IFINKEY-103F%=-M%:G%=0
  770IFINKEY-104F%=M%:G%=0
  780IFINKEY-73F%=0:G%=N%
  790IFINKEY-105F%=0:G%=-N%
  800PROCm2
  810ENDPROC
  820REM ==MOVE TWO
  830DEFPROCm2
  840X%(c%)=X%:Y%(c%)=Y%
  850IFPOINT(X%+F%,Y%+G%)=5MOVEX%+F%,Y%+G%:PRINTP$:PROCscore(2,8)
  860IFPOINT(X%+F%,Y%+G%)=1PROCscore(2,-8)
  870IFPOINT(X%+F%,Y%+G%)=4ENDPROC
  880IFPOINT(X%+F%,Y%+G%)=14stop%=1:VDU19,1,9;0;:GCOL0,0:MOVEX%+F%,Y%+G%:PRINTp$:GOSUB1760:TIME=0
  890X%=X%+F%:Y%=Y%+G%
  900MOVEX%,Y%:PRINTX$
  910c%=(c%+1)MOD(t%+1)
  920IFc%=t%PROCremove2
  930ENDPROC
  940REM ==SCORE
  950DEFPROCscore(P%,z%)
  960IFP%=1:IFv%+z%<136ENDPROC
  970IFP%=2:IFl%+z%<136ENDPROC
  980IFP%=1ANDz%=8GCOL0,1:MOVEu%,v%:VDU226:v%=v%+16:cc%=cc%+1:SOUND0,-15,2,2
  990IFP%=1ANDz%=-8GCOL0,0:MOVEu%,v%-16:VDU226:v%=v%-16:SOUND1,2,50,1
 1000IFP%=2ANDz%=8GCOL0,2:MOVEk%,l%:VDU226:l%=l%+16:cc%=cc%+1:SOUND0,-15,1,2
 1010IFP%=2ANDz%=-8GCOL0,0:MOVEk%,l%-16:VDU226:l%=l%-16:SOUND2,2,80,1
 1020ENDPROC
 1030REM ==VDUS
 1040DEFPROCvdu
 1050VDU23,224,240,240,240,240,240,240,240,240
 1060VDU23,225,160,80,160,80,160,80,160,80
 1070VDU23,226,240,240,96,96,0,0,0,0
 1080VDU23,227,144,144,96,96,96,96,144,144
 1090ENDPROC
 1100REM ==SCREEN
 1110DEFPROCscreen
 1120VDU26,4
 1130COLOUR133:CLS
 1140VDU28,0,31,19,3
 1150COLOUR132:CLS
 1160VDU24,96;100;1176;832;
 1170GCOL0,128:CLG
 1180VDU24,24;124;56;832;
 1190CLG
 1200VDU24,1216;124;1248;832;
 1210CLG
 1220VDU26,30
 1230COLOUR7:COLOUR128
 1240COLOUR1:PRINTTAB(1,0)"RED":COLOUR2:PRINTTAB(14,0)"GREEN"
 1250COLOUR3:PRINTTAB(2,1);RED%TAB(16,1);GREEN%
 1260ENDPROC
 1270REM ==INIT
 1280DEFPROCinit
 1290FORI%=1TO20
 1300A%(I%)=0:B%(I%)=0:X%(I%)=0:Y%(I%)=0:NEXT
 1310K$=CHR$18+CHR$3
 1320A$=K$+CHR$1+CHR$224
 1330X$=K$+CHR$2+CHR$224
 1340P$=K$+CHR$5+CHR$225
 1350p$=K$+CHR$14+CHR$227
 1360Z$=CHR$226
 1370M%=32:N%=32
 1380D%=0:E%=32
 1390u%=32:v%=136:k%=1216:l%=136
 1400T%=8:t%=8
 1410n%=10:q%=200
 1420ENDPROC
 1430REM ==REMOVE1
 1440DEFPROCremove1
 1450SOUND1,1,20,4
 1460FORI%=0TOT%
 1470MOVEA%(I%),B%(I%):IFB%(I%)>0PRINTA$
 1480NEXT
 1490ENDPROC
 1500REM ==REMOVE2
 1510DEFPROCremove2
 1520SOUND2,1,90,4
 1530FORI%=0TOt%
 1540MOVEX%(I%),Y%(I%):IFY%(I%)>0PRINTX$
 1550NEXT
 1560ENDPROC
 1570REM ==PLACE-BITS
 1580DEFPROCplace_bits
 1590VDU5
 1600FORI%=1TOn%
 1610x%=RND(33)*32+96
 1620y%=RND(21)*32+128
 1630IFPOINT(x%,y%)<>0GOTO1610
 1640IFPOINT(x%,y%)=0MOVEx%,y%:PRINTP$
 1650NEXT
 1660x%=RND(33)*32+96:y%=RND(21)*32+128:IFPOINT(x%,y%)=0MOVEx%,y%:PRINTp$
 1670ENDPROC
 1680REM ==REDWIN
 1690DEFPROCredwin
 1700PRINTTAB(5,4)"RED WINS!"
 1710ENDPROC
 1720REM ==GREENWIN
 1730DEFPROCgreenwin
 1740PRINTTAB(4,4)"GREEN WINS!"
 1750ENDPROC
 1760x%=RND(33)*32+96:y%=RND(21)*32+128:IFPOINT(x%,y%)<>0GOTO1760
 1770MOVEx%,y%:PRINTp$
 1780RETURN
� ==SNAKE2
� by Mike Goldberg
� (c) The Micro User

-�1,1,4,-8,13,20,20,620,127,-1,-4,-4,90,50
,�2,1,-3,-2,0,10,5,0,127,-1,-2,-3,126,100
�2
(�19,14,12;0;
2�23;8202;0;0;0;
<�A%(20),B%(20)
F�X%(20),Y%(20)
PRED%=0:GREEN%=0
Z�vdu
d�
n	�init
x�screen
��
��place_bits
�
�start
�
� TT%=�+5
��stop%=1� �<q%�df@
�$�stop%=1� �>q%stop%=0:�19,1,1;0;
��one
�
A=�(1)
��stop%=2� �<q%�dp@
�$�stop%=2� �>q%stop%=0:�19,2,2;0;
��two:���>TT%
��cc%=n% � v%=840 � l%=840
��v%=840 � l%=840 �TlA
n%=n%+2
T%=T%+1:t%=t%+1
!�24,96;100;1176;832;:�0,128:�
"�26
,�v%=840 � l%=840
6	�26,4
@�3
J�v%=840�redwin:RED%=RED%+1
T$�l%=840�greenwin:GREEN%=GREEN%+1
^�4,25)"PRESS SPACE"
h
���=32
r�
|�0
�
� ==START
���start
�A%=160:B%=160
�X%=1088:Y%=160
��5
��A%,B%:�A$
��X%,Y%:�X$
�D%=0:E%=32
�F%=0:G%=32
�
C%=0:c%=0
��19,2,2;0;19,1,1;0;:�=0
�	cc%=0
�stop%=0

���=32
�
� ==PLAYER 0NE
&	��one
0�-98D%=-M%:E%=0
:�-67D%=M%:E%=0
D�-68D%=0:E%=N%
N�-83D%=0:E%=-N%
X�m1
b�
l� ==MOVE ONE
v��m1
�A%(C%)=A%:B%(C%)=B%
�0�A%+D%,B%+E%)=5�A%+D%,B%+E%:�P$:�score(1,8)
� �A%+D%,B%+E%)=2�score(1,-8)
��A%+D%,B%+E%)=4�
�H�A%+D%,B%+E%)=14stop%=2:�19,2,10;0;:�0,0:�A%+D%,B%+E%:�p$:�d`F:�=0
�A%=A%+D%:B%=B%+E%
��A%,B%:�A$
�C%=(C%+1)�(T%+1)
��C%=T%�remove1
��
�� ==PLAYER TWO
�	��two
��-103F%=-M%:G%=0
�-104F%=M%:G%=0
�-73F%=0:G%=N%
�-105F%=0:G%=-N%
 �m2
*�
4� ==MOVE TWO
>��m2
HX%(c%)=X%:Y%(c%)=Y%
R0�X%+F%,Y%+G%)=5�X%+F%,Y%+G%:�P$:�score(2,8)
\ �X%+F%,Y%+G%)=1�score(2,-8)
f�X%+F%,Y%+G%)=4�
pG�X%+F%,Y%+G%)=14stop%=1:�19,1,9;0;:�0,0:�X%+F%,Y%+G%:�p$:�d`F:�=0
zX%=X%+F%:Y%=Y%+G%
��X%,Y%:�X$
�c%=(c%+1)�(t%+1)
��c%=t%�remove2
��
�
� ==SCORE
���score(P%,z%)
��P%=1:�v%+z%<136�
��P%=2:�l%+z%<136�
�<�P%=1�z%=8�0,1:�u%,v%:�226:v%=v%+16:cc%=cc%+1:�0,-15,2,2
�5�P%=1�z%=-8�0,0:�u%,v%-16:�226:v%=v%-16:�1,2,50,1
�<�P%=2�z%=8�0,2:�k%,l%:�226:l%=l%+16:cc%=cc%+1:�0,-15,1,2
�5�P%=2�z%=-8�0,0:�k%,l%-16:�226:l%=l%-16:�2,2,80,1
��
� ==VDUS
	��vdu
+�23,224,240,240,240,240,240,240,240,240
$'�23,225,160,80,160,80,160,80,160,80
.!�23,226,240,240,96,96,0,0,0,0
8'�23,227,144,144,96,96,96,96,144,144
B�
L� ==SCREEN
V��screen
`	�26,4
j
�133:�
t�28,0,31,19,3
~
�132:�
��24,96;100;1176;832;
��0,128:�
��24,24;124;56;832;
��
��24,1216;124;1248;832;
��
�
�26,30
��7:�128
�$�1:�1,0)"RED":�2:�14,0)"GREEN"
��3:�2,1);RED%�16,1);GREEN%
��
�� ==INIT

��init

�I%=1�20
)A%(I%)=0:B%(I%)=0:X%(I%)=0:Y%(I%)=0:�

K$=�18+�3
(A$=K$+�1+�224
2X$=K$+�2+�224
<P$=K$+�5+�225
Fp$=K$+�14+�227
PZ$=�226
ZM%=32:N%=32
dD%=0:E%=32
nu%=32:v%=136:k%=1216:l%=136
x
T%=8:t%=8
�n%=10:q%=200
��
�� ==REMOVE1
�
��remove1
�
�1,1,20,4
��I%=0�T%
��A%(I%),B%(I%):�B%(I%)>0�A$
��
��
�� ==REMOVE2
�
��remove2
�
�2,1,90,4
��I%=0�t%
�X%(I%),Y%(I%):�Y%(I%)>0�X$
�
�
"� ==PLACE-BITS
,��place_bits
6�5
@�I%=1�n%
Jx%=�(33)*32+96
Ty%=�(21)*32+128
^�x%,y%)<>0�DJF
h�x%,y%)=0�x%,y%:�P$
r�
|7x%=�(33)*32+96:y%=�(21)*32+128:�x%,y%)=0�x%,y%:�p$
��
�� ==REDWIN
���redwin
��5,4)"RED WINS!"
��
�� ==GREENWIN
���greenwin
��4,4)"GREEN WINS!"
��
�3x%=�(33)*32+96:y%=�(21)*32+128:�x%,y%)<>0�d`F
��x%,y%:�p$
��
�
00000000  0d 00 01 0e f4 20 3d 3d  53 4e 41 4b 45 32 0d 00  |..... ==SNAKE2..|
00000010  02 16 f4 20 62 79 20 4d  69 6b 65 20 47 6f 6c 64  |... by Mike Gold|
00000020  62 65 72 67 0d 00 03 18  f4 20 28 63 29 20 54 68  |berg..... (c) Th|
00000030  65 20 4d 69 63 72 6f 20  55 73 65 72 0d 00 0a 2d  |e Micro User...-|
00000040  e2 31 2c 31 2c 34 2c 2d  38 2c 31 33 2c 32 30 2c  |.1,1,4,-8,13,20,|
00000050  32 30 2c 36 32 30 2c 31  32 37 2c 2d 31 2c 2d 34  |20,620,127,-1,-4|
00000060  2c 2d 34 2c 39 30 2c 35  30 0d 00 14 2c e2 32 2c  |,-4,90,50...,.2,|
00000070  31 2c 2d 33 2c 2d 32 2c  30 2c 31 30 2c 35 2c 30  |1,-3,-2,0,10,5,0|
00000080  2c 31 32 37 2c 2d 31 2c  2d 32 2c 2d 33 2c 31 32  |,127,-1,-2,-3,12|
00000090  36 2c 31 30 30 0d 00 1e  06 eb 32 0d 00 28 10 ef  |6,100.....2..(..|
000000a0  31 39 2c 31 34 2c 31 32  3b 30 3b 0d 00 32 13 ef  |19,14,12;0;..2..|
000000b0  32 33 3b 38 32 30 32 3b  30 3b 30 3b 30 3b 0d 00  |23;8202;0;0;0;..|
000000c0  3c 12 de 41 25 28 32 30  29 2c 42 25 28 32 30 29  |<..A%(20),B%(20)|
000000d0  0d 00 46 12 de 58 25 28  32 30 29 2c 59 25 28 32  |..F..X%(20),Y%(2|
000000e0  30 29 0d 00 50 13 52 45  44 25 3d 30 3a 47 52 45  |0)..P.RED%=0:GRE|
000000f0  45 4e 25 3d 30 0d 00 5a  08 f2 76 64 75 0d 00 64  |EN%=0..Z..vdu..d|
00000100  05 f5 0d 00 6e 09 f2 69  6e 69 74 0d 00 78 0b f2  |....n..init..x..|
00000110  73 63 72 65 65 6e 0d 00  82 05 f5 0d 00 8c 0f f2  |screen..........|
00000120  70 6c 61 63 65 5f 62 69  74 73 0d 00 96 0a f2 73  |place_bits.....s|
00000130  74 61 72 74 0d 00 a0 0d  f5 20 54 54 25 3d 91 2b  |tart..... TT%=.+|
00000140  35 0d 00 aa 17 e7 73 74  6f 70 25 3d 31 80 20 91  |5.....stop%=1. .|
00000150  3c 71 25 e5 8d 64 66 40  0d 00 b4 24 e7 73 74 6f  |<q%..df@...$.sto|
00000160  70 25 3d 31 80 20 91 3e  71 25 73 74 6f 70 25 3d  |p%=1. .>q%stop%=|
00000170  30 3a ef 31 39 2c 31 2c  31 3b 30 3b 0d 00 be 08  |0:.19,1,1;0;....|
00000180  f2 6f 6e 65 0d 00 c8 0a  41 3d a6 28 31 29 0d 00  |.one....A=.(1)..|
00000190  d2 17 e7 73 74 6f 70 25  3d 32 80 20 91 3c 71 25  |...stop%=2. .<q%|
000001a0  e5 8d 64 70 40 0d 00 dc  24 e7 73 74 6f 70 25 3d  |..dp@...$.stop%=|
000001b0  32 80 20 91 3e 71 25 73  74 6f 70 25 3d 30 3a ef  |2. .>q%stop%=0:.|
000001c0  31 39 2c 32 2c 32 3b 30  3b 0d 00 e6 10 f2 74 77  |19,2,2;0;.....tw|
000001d0  6f 3a f5 fd 91 3e 54 54  25 0d 00 f0 1d fd 63 63  |o:...>TT%.....cc|
000001e0  25 3d 6e 25 20 84 20 76  25 3d 38 34 30 20 84 20  |%=n% . v%=840 . |
000001f0  6c 25 3d 38 34 30 0d 00  fa 1a e7 76 25 3d 38 34  |l%=840.....v%=84|
00000200  30 20 84 20 6c 25 3d 38  34 30 20 e5 8d 54 6c 41  |0 . l%=840 ..TlA|
00000210  0d 01 04 0b 6e 25 3d 6e  25 2b 32 0d 01 0e 13 54  |....n%=n%+2....T|
00000220  25 3d 54 25 2b 31 3a 74  25 3d 74 25 2b 31 0d 01  |%=T%+1:t%=t%+1..|
00000230  18 21 ef 32 34 2c 39 36  3b 31 30 30 3b 31 31 37  |.!.24,96;100;117|
00000240  36 3b 38 33 32 3b 3a e6  30 2c 31 32 38 3a da 0d  |6;832;:.0,128:..|
00000250  01 22 07 ef 32 36 0d 01  2c 14 fd 76 25 3d 38 34  |."..26..,..v%=84|
00000260  30 20 84 20 6c 25 3d 38  34 30 0d 01 36 09 ef 32  |0 . l%=840..6..2|
00000270  36 2c 34 0d 01 40 06 fb  33 0d 01 4a 1e e7 76 25  |6,4..@..3..J..v%|
00000280  3d 38 34 30 f2 72 65 64  77 69 6e 3a 52 45 44 25  |=840.redwin:RED%|
00000290  3d 52 45 44 25 2b 31 0d  01 54 24 e7 6c 25 3d 38  |=RED%+1..T$.l%=8|
000002a0  34 30 f2 67 72 65 65 6e  77 69 6e 3a 47 52 45 45  |40.greenwin:GREE|
000002b0  4e 25 3d 47 52 45 45 4e  25 2b 31 0d 01 5e 18 f1  |N%=GREEN%+1..^..|
000002c0  8a 34 2c 32 35 29 22 50  52 45 53 53 20 53 50 41  |.4,25)"PRESS SPA|
000002d0  43 45 22 0d 01 68 0a f5  fd a5 3d 33 32 0d 01 72  |CE"..h....=32..r|
000002e0  05 db 0d 01 7c 06 fd 30  0d 01 86 0d f4 20 3d 3d  |....|..0..... ==|
000002f0  53 54 41 52 54 0d 01 90  0b dd f2 73 74 61 72 74  |START......start|
00000300  0d 01 9a 11 41 25 3d 31  36 30 3a 42 25 3d 31 36  |....A%=160:B%=16|
00000310  30 0d 01 a4 12 58 25 3d  31 30 38 38 3a 59 25 3d  |0....X%=1088:Y%=|
00000320  31 36 30 0d 01 ae 06 ef  35 0d 01 b8 0e ec 41 25  |160.....5.....A%|
00000330  2c 42 25 3a f1 41 24 0d  01 c2 0e ec 58 25 2c 59  |,B%:.A$.....X%,Y|
00000340  25 3a f1 58 24 0d 01 cc  0e 44 25 3d 30 3a 45 25  |%:.X$....D%=0:E%|
00000350  3d 33 32 0d 01 d6 0e 46  25 3d 30 3a 47 25 3d 33  |=32....F%=0:G%=3|
00000360  32 0d 01 e0 0d 43 25 3d  30 3a 63 25 3d 30 0d 01  |2....C%=0:c%=0..|
00000370  ea 1b ef 31 39 2c 32 2c  32 3b 30 3b 31 39 2c 31  |...19,2,2;0;19,1|
00000380  2c 31 3b 30 3b 3a d1 3d  30 0d 01 f4 09 63 63 25  |,1;0;:.=0....cc%|
00000390  3d 30 0d 01 fe 0b 73 74  6f 70 25 3d 30 0d 02 08  |=0....stop%=0...|
000003a0  0a f5 fd a5 3d 33 32 0d  02 12 05 e1 0d 02 1c 12  |....=32.........|
000003b0  f4 20 3d 3d 50 4c 41 59  45 52 20 30 4e 45 0d 02  |. ==PLAYER 0NE..|
000003c0  26 09 dd f2 6f 6e 65 0d  02 30 14 e7 a6 2d 39 38  |&...one..0...-98|
000003d0  44 25 3d 2d 4d 25 3a 45  25 3d 30 0d 02 3a 13 e7  |D%=-M%:E%=0..:..|
000003e0  a6 2d 36 37 44 25 3d 4d  25 3a 45 25 3d 30 0d 02  |.-67D%=M%:E%=0..|
000003f0  44 13 e7 a6 2d 36 38 44  25 3d 30 3a 45 25 3d 4e  |D...-68D%=0:E%=N|
00000400  25 0d 02 4e 14 e7 a6 2d  38 33 44 25 3d 30 3a 45  |%..N...-83D%=0:E|
00000410  25 3d 2d 4e 25 0d 02 58  07 f2 6d 31 0d 02 62 05  |%=-N%..X..m1..b.|
00000420  e1 0d 02 6c 10 f4 20 3d  3d 4d 4f 56 45 20 4f 4e  |...l.. ==MOVE ON|
00000430  45 0d 02 76 08 dd f2 6d  31 0d 02 80 17 41 25 28  |E..v...m1....A%(|
00000440  43 25 29 3d 41 25 3a 42  25 28 43 25 29 3d 42 25  |C%)=A%:B%(C%)=B%|
00000450  0d 02 8a 30 e7 b0 41 25  2b 44 25 2c 42 25 2b 45  |...0..A%+D%,B%+E|
00000460  25 29 3d 35 ec 41 25 2b  44 25 2c 42 25 2b 45 25  |%)=5.A%+D%,B%+E%|
00000470  3a f1 50 24 3a f2 73 63  6f 72 65 28 31 2c 38 29  |:.P$:.score(1,8)|
00000480  0d 02 94 20 e7 b0 41 25  2b 44 25 2c 42 25 2b 45  |... ..A%+D%,B%+E|
00000490  25 29 3d 32 f2 73 63 6f  72 65 28 31 2c 2d 38 29  |%)=2.score(1,-8)|
000004a0  0d 02 9e 15 e7 b0 41 25  2b 44 25 2c 42 25 2b 45  |......A%+D%,B%+E|
000004b0  25 29 3d 34 e1 0d 02 a8  48 e7 b0 41 25 2b 44 25  |%)=4....H..A%+D%|
000004c0  2c 42 25 2b 45 25 29 3d  31 34 73 74 6f 70 25 3d  |,B%+E%)=14stop%=|
000004d0  32 3a ef 31 39 2c 32 2c  31 30 3b 30 3b 3a e6 30  |2:.19,2,10;0;:.0|
000004e0  2c 30 3a ec 41 25 2b 44  25 2c 42 25 2b 45 25 3a  |,0:.A%+D%,B%+E%:|
000004f0  f1 70 24 3a e4 8d 64 60  46 3a d1 3d 30 0d 02 b2  |.p$:..d`F:.=0...|
00000500  15 41 25 3d 41 25 2b 44  25 3a 42 25 3d 42 25 2b  |.A%=A%+D%:B%=B%+|
00000510  45 25 0d 02 bc 0e ec 41  25 2c 42 25 3a f1 41 24  |E%.....A%,B%:.A$|
00000520  0d 02 c6 14 43 25 3d 28  43 25 2b 31 29 83 28 54  |....C%=(C%+1).(T|
00000530  25 2b 31 29 0d 02 d0 12  e7 43 25 3d 54 25 f2 72  |%+1).....C%=T%.r|
00000540  65 6d 6f 76 65 31 0d 02  da 05 e1 0d 02 e4 12 f4  |emove1..........|
00000550  20 3d 3d 50 4c 41 59 45  52 20 54 57 4f 0d 02 ee  | ==PLAYER TWO...|
00000560  09 dd f2 74 77 6f 0d 02  f8 15 e7 a6 2d 31 30 33  |...two......-103|
00000570  46 25 3d 2d 4d 25 3a 47  25 3d 30 0d 03 02 14 e7  |F%=-M%:G%=0.....|
00000580  a6 2d 31 30 34 46 25 3d  4d 25 3a 47 25 3d 30 0d  |.-104F%=M%:G%=0.|
00000590  03 0c 13 e7 a6 2d 37 33  46 25 3d 30 3a 47 25 3d  |.....-73F%=0:G%=|
000005a0  4e 25 0d 03 16 15 e7 a6  2d 31 30 35 46 25 3d 30  |N%......-105F%=0|
000005b0  3a 47 25 3d 2d 4e 25 0d  03 20 07 f2 6d 32 0d 03  |:G%=-N%.. ..m2..|
000005c0  2a 05 e1 0d 03 34 10 f4  20 3d 3d 4d 4f 56 45 20  |*....4.. ==MOVE |
000005d0  54 57 4f 0d 03 3e 08 dd  f2 6d 32 0d 03 48 17 58  |TWO..>...m2..H.X|
000005e0  25 28 63 25 29 3d 58 25  3a 59 25 28 63 25 29 3d  |%(c%)=X%:Y%(c%)=|
000005f0  59 25 0d 03 52 30 e7 b0  58 25 2b 46 25 2c 59 25  |Y%..R0..X%+F%,Y%|
00000600  2b 47 25 29 3d 35 ec 58  25 2b 46 25 2c 59 25 2b  |+G%)=5.X%+F%,Y%+|
00000610  47 25 3a f1 50 24 3a f2  73 63 6f 72 65 28 32 2c  |G%:.P$:.score(2,|
00000620  38 29 0d 03 5c 20 e7 b0  58 25 2b 46 25 2c 59 25  |8)..\ ..X%+F%,Y%|
00000630  2b 47 25 29 3d 31 f2 73  63 6f 72 65 28 32 2c 2d  |+G%)=1.score(2,-|
00000640  38 29 0d 03 66 15 e7 b0  58 25 2b 46 25 2c 59 25  |8)..f...X%+F%,Y%|
00000650  2b 47 25 29 3d 34 e1 0d  03 70 47 e7 b0 58 25 2b  |+G%)=4...pG..X%+|
00000660  46 25 2c 59 25 2b 47 25  29 3d 31 34 73 74 6f 70  |F%,Y%+G%)=14stop|
00000670  25 3d 31 3a ef 31 39 2c  31 2c 39 3b 30 3b 3a e6  |%=1:.19,1,9;0;:.|
00000680  30 2c 30 3a ec 58 25 2b  46 25 2c 59 25 2b 47 25  |0,0:.X%+F%,Y%+G%|
00000690  3a f1 70 24 3a e4 8d 64  60 46 3a d1 3d 30 0d 03  |:.p$:..d`F:.=0..|
000006a0  7a 15 58 25 3d 58 25 2b  46 25 3a 59 25 3d 59 25  |z.X%=X%+F%:Y%=Y%|
000006b0  2b 47 25 0d 03 84 0e ec  58 25 2c 59 25 3a f1 58  |+G%.....X%,Y%:.X|
000006c0  24 0d 03 8e 14 63 25 3d  28 63 25 2b 31 29 83 28  |$....c%=(c%+1).(|
000006d0  74 25 2b 31 29 0d 03 98  12 e7 63 25 3d 74 25 f2  |t%+1).....c%=t%.|
000006e0  72 65 6d 6f 76 65 32 0d  03 a2 05 e1 0d 03 ac 0d  |remove2.........|
000006f0  f4 20 3d 3d 53 43 4f 52  45 0d 03 b6 12 dd f2 73  |. ==SCORE......s|
00000700  63 6f 72 65 28 50 25 2c  7a 25 29 0d 03 c0 15 e7  |core(P%,z%).....|
00000710  50 25 3d 31 3a e7 76 25  2b 7a 25 3c 31 33 36 e1  |P%=1:.v%+z%<136.|
00000720  0d 03 ca 15 e7 50 25 3d  32 3a e7 6c 25 2b 7a 25  |.....P%=2:.l%+z%|
00000730  3c 31 33 36 e1 0d 03 d4  3c e7 50 25 3d 31 80 7a  |<136....<.P%=1.z|
00000740  25 3d 38 e6 30 2c 31 3a  ec 75 25 2c 76 25 3a ef  |%=8.0,1:.u%,v%:.|
00000750  32 32 36 3a 76 25 3d 76  25 2b 31 36 3a 63 63 25  |226:v%=v%+16:cc%|
00000760  3d 63 63 25 2b 31 3a d4  30 2c 2d 31 35 2c 32 2c  |=cc%+1:.0,-15,2,|
00000770  32 0d 03 de 35 e7 50 25  3d 31 80 7a 25 3d 2d 38  |2...5.P%=1.z%=-8|
00000780  e6 30 2c 30 3a ec 75 25  2c 76 25 2d 31 36 3a ef  |.0,0:.u%,v%-16:.|
00000790  32 32 36 3a 76 25 3d 76  25 2d 31 36 3a d4 31 2c  |226:v%=v%-16:.1,|
000007a0  32 2c 35 30 2c 31 0d 03  e8 3c e7 50 25 3d 32 80  |2,50,1...<.P%=2.|
000007b0  7a 25 3d 38 e6 30 2c 32  3a ec 6b 25 2c 6c 25 3a  |z%=8.0,2:.k%,l%:|
000007c0  ef 32 32 36 3a 6c 25 3d  6c 25 2b 31 36 3a 63 63  |.226:l%=l%+16:cc|
000007d0  25 3d 63 63 25 2b 31 3a  d4 30 2c 2d 31 35 2c 31  |%=cc%+1:.0,-15,1|
000007e0  2c 32 0d 03 f2 35 e7 50  25 3d 32 80 7a 25 3d 2d  |,2...5.P%=2.z%=-|
000007f0  38 e6 30 2c 30 3a ec 6b  25 2c 6c 25 2d 31 36 3a  |8.0,0:.k%,l%-16:|
00000800  ef 32 32 36 3a 6c 25 3d  6c 25 2d 31 36 3a d4 32  |.226:l%=l%-16:.2|
00000810  2c 32 2c 38 30 2c 31 0d  03 fc 05 e1 0d 04 06 0c  |,2,80,1.........|
00000820  f4 20 3d 3d 56 44 55 53  0d 04 10 09 dd f2 76 64  |. ==VDUS......vd|
00000830  75 0d 04 1a 2b ef 32 33  2c 32 32 34 2c 32 34 30  |u...+.23,224,240|
00000840  2c 32 34 30 2c 32 34 30  2c 32 34 30 2c 32 34 30  |,240,240,240,240|
00000850  2c 32 34 30 2c 32 34 30  2c 32 34 30 0d 04 24 27  |,240,240,240..$'|
00000860  ef 32 33 2c 32 32 35 2c  31 36 30 2c 38 30 2c 31  |.23,225,160,80,1|
00000870  36 30 2c 38 30 2c 31 36  30 2c 38 30 2c 31 36 30  |60,80,160,80,160|
00000880  2c 38 30 0d 04 2e 21 ef  32 33 2c 32 32 36 2c 32  |,80...!.23,226,2|
00000890  34 30 2c 32 34 30 2c 39  36 2c 39 36 2c 30 2c 30  |40,240,96,96,0,0|
000008a0  2c 30 2c 30 0d 04 38 27  ef 32 33 2c 32 32 37 2c  |,0,0..8'.23,227,|
000008b0  31 34 34 2c 31 34 34 2c  39 36 2c 39 36 2c 39 36  |144,144,96,96,96|
000008c0  2c 39 36 2c 31 34 34 2c  31 34 34 0d 04 42 05 e1  |,96,144,144..B..|
000008d0  0d 04 4c 0e f4 20 3d 3d  53 43 52 45 45 4e 0d 04  |..L.. ==SCREEN..|
000008e0  56 0c dd f2 73 63 72 65  65 6e 0d 04 60 09 ef 32  |V...screen..`..2|
000008f0  36 2c 34 0d 04 6a 0a fb  31 33 33 3a db 0d 04 74  |6,4..j..133:...t|
00000900  11 ef 32 38 2c 30 2c 33  31 2c 31 39 2c 33 0d 04  |..28,0,31,19,3..|
00000910  7e 0a fb 31 33 32 3a db  0d 04 88 18 ef 32 34 2c  |~..132:......24,|
00000920  39 36 3b 31 30 30 3b 31  31 37 36 3b 38 33 32 3b  |96;100;1176;832;|
00000930  0d 04 92 0c e6 30 2c 31  32 38 3a da 0d 04 9c 16  |.....0,128:.....|
00000940  ef 32 34 2c 32 34 3b 31  32 34 3b 35 36 3b 38 33  |.24,24;124;56;83|
00000950  32 3b 0d 04 a6 05 da 0d  04 b0 1a ef 32 34 2c 31  |2;..........24,1|
00000960  32 31 36 3b 31 32 34 3b  31 32 34 38 3b 38 33 32  |216;124;1248;832|
00000970  3b 0d 04 ba 05 da 0d 04  c4 0a ef 32 36 2c 33 30  |;..........26,30|
00000980  0d 04 ce 0b fb 37 3a fb  31 32 38 0d 04 d8 24 fb  |.....7:.128...$.|
00000990  31 3a f1 8a 31 2c 30 29  22 52 45 44 22 3a fb 32  |1:..1,0)"RED":.2|
000009a0  3a f1 8a 31 34 2c 30 29  22 47 52 45 45 4e 22 0d  |:..14,0)"GREEN".|
000009b0  04 e2 1f fb 33 3a f1 8a  32 2c 31 29 3b 52 45 44  |....3:..2,1);RED|
000009c0  25 8a 31 36 2c 31 29 3b  47 52 45 45 4e 25 0d 04  |%.16,1);GREEN%..|
000009d0  ec 05 e1 0d 04 f6 0c f4  20 3d 3d 49 4e 49 54 0d  |........ ==INIT.|
000009e0  05 00 0a dd f2 69 6e 69  74 0d 05 0a 0c e3 49 25  |.....init.....I%|
000009f0  3d 31 b8 32 30 0d 05 14  29 41 25 28 49 25 29 3d  |=1.20...)A%(I%)=|
00000a00  30 3a 42 25 28 49 25 29  3d 30 3a 58 25 28 49 25  |0:B%(I%)=0:X%(I%|
00000a10  29 3d 30 3a 59 25 28 49  25 29 3d 30 3a ed 0d 05  |)=0:Y%(I%)=0:...|
00000a20  1e 0d 4b 24 3d bd 31 38  2b bd 33 0d 05 28 11 41  |..K$=.18+.3..(.A|
00000a30  24 3d 4b 24 2b bd 31 2b  bd 32 32 34 0d 05 32 11  |$=K$+.1+.224..2.|
00000a40  58 24 3d 4b 24 2b bd 32  2b bd 32 32 34 0d 05 3c  |X$=K$+.2+.224..<|
00000a50  11 50 24 3d 4b 24 2b bd  35 2b bd 32 32 35 0d 05  |.P$=K$+.5+.225..|
00000a60  46 12 70 24 3d 4b 24 2b  bd 31 34 2b bd 32 32 37  |F.p$=K$+.14+.227|
00000a70  0d 05 50 0b 5a 24 3d bd  32 32 36 0d 05 5a 0f 4d  |..P.Z$=.226..Z.M|
00000a80  25 3d 33 32 3a 4e 25 3d  33 32 0d 05 64 0e 44 25  |%=32:N%=32..d.D%|
00000a90  3d 30 3a 45 25 3d 33 32  0d 05 6e 1f 75 25 3d 33  |=0:E%=32..n.u%=3|
00000aa0  32 3a 76 25 3d 31 33 36  3a 6b 25 3d 31 32 31 36  |2:v%=136:k%=1216|
00000ab0  3a 6c 25 3d 31 33 36 0d  05 78 0d 54 25 3d 38 3a  |:l%=136..x.T%=8:|
00000ac0  74 25 3d 38 0d 05 82 10  6e 25 3d 31 30 3a 71 25  |t%=8....n%=10:q%|
00000ad0  3d 32 30 30 0d 05 8c 05  e1 0d 05 96 0f f4 20 3d  |=200.......... =|
00000ae0  3d 52 45 4d 4f 56 45 31  0d 05 a0 0d dd f2 72 65  |=REMOVE1......re|
00000af0  6d 6f 76 65 31 0d 05 aa  0d d4 31 2c 31 2c 32 30  |move1.....1,1,20|
00000b00  2c 34 0d 05 b4 0c e3 49  25 3d 30 b8 54 25 0d 05  |,4.....I%=0.T%..|
00000b10  be 1f ec 41 25 28 49 25  29 2c 42 25 28 49 25 29  |...A%(I%),B%(I%)|
00000b20  3a e7 42 25 28 49 25 29  3e 30 f1 41 24 0d 05 c8  |:.B%(I%)>0.A$...|
00000b30  05 ed 0d 05 d2 05 e1 0d  05 dc 0f f4 20 3d 3d 52  |............ ==R|
00000b40  45 4d 4f 56 45 32 0d 05  e6 0d dd f2 72 65 6d 6f  |EMOVE2......remo|
00000b50  76 65 32 0d 05 f0 0d d4  32 2c 31 2c 39 30 2c 34  |ve2.....2,1,90,4|
00000b60  0d 05 fa 0c e3 49 25 3d  30 b8 74 25 0d 06 04 1f  |.....I%=0.t%....|
00000b70  ec 58 25 28 49 25 29 2c  59 25 28 49 25 29 3a e7  |.X%(I%),Y%(I%):.|
00000b80  59 25 28 49 25 29 3e 30  f1 58 24 0d 06 0e 05 ed  |Y%(I%)>0.X$.....|
00000b90  0d 06 18 05 e1 0d 06 22  12 f4 20 3d 3d 50 4c 41  |.......".. ==PLA|
00000ba0  43 45 2d 42 49 54 53 0d  06 2c 10 dd f2 70 6c 61  |CE-BITS..,...pla|
00000bb0  63 65 5f 62 69 74 73 0d  06 36 06 ef 35 0d 06 40  |ce_bits..6..5..@|
00000bc0  0c e3 49 25 3d 31 b8 6e  25 0d 06 4a 12 78 25 3d  |..I%=1.n%..J.x%=|
00000bd0  b3 28 33 33 29 2a 33 32  2b 39 36 0d 06 54 13 79  |.(33)*32+96..T.y|
00000be0  25 3d b3 28 32 31 29 2a  33 32 2b 31 32 38 0d 06  |%=.(21)*32+128..|
00000bf0  5e 14 e7 b0 78 25 2c 79  25 29 3c 3e 30 e5 8d 44  |^...x%,y%)<>0..D|
00000c00  4a 46 0d 06 68 18 e7 b0  78 25 2c 79 25 29 3d 30  |JF..h...x%,y%)=0|
00000c10  ec 78 25 2c 79 25 3a f1  50 24 0d 06 72 05 ed 0d  |.x%,y%:.P$..r...|
00000c20  06 7c 37 78 25 3d b3 28  33 33 29 2a 33 32 2b 39  |.|7x%=.(33)*32+9|
00000c30  36 3a 79 25 3d b3 28 32  31 29 2a 33 32 2b 31 32  |6:y%=.(21)*32+12|
00000c40  38 3a e7 b0 78 25 2c 79  25 29 3d 30 ec 78 25 2c  |8:..x%,y%)=0.x%,|
00000c50  79 25 3a f1 70 24 0d 06  86 05 e1 0d 06 90 0e f4  |y%:.p$..........|
00000c60  20 3d 3d 52 45 44 57 49  4e 0d 06 9a 0c dd f2 72  | ==REDWIN......r|
00000c70  65 64 77 69 6e 0d 06 a4  15 f1 8a 35 2c 34 29 22  |edwin......5,4)"|
00000c80  52 45 44 20 57 49 4e 53  21 22 0d 06 ae 05 e1 0d  |RED WINS!"......|
00000c90  06 b8 10 f4 20 3d 3d 47  52 45 45 4e 57 49 4e 0d  |.... ==GREENWIN.|
00000ca0  06 c2 0e dd f2 67 72 65  65 6e 77 69 6e 0d 06 cc  |.....greenwin...|
00000cb0  17 f1 8a 34 2c 34 29 22  47 52 45 45 4e 20 57 49  |...4,4)"GREEN WI|
00000cc0  4e 53 21 22 0d 06 d6 05  e1 0d 06 e0 33 78 25 3d  |NS!"........3x%=|
00000cd0  b3 28 33 33 29 2a 33 32  2b 39 36 3a 79 25 3d b3  |.(33)*32+96:y%=.|
00000ce0  28 32 31 29 2a 33 32 2b  31 32 38 3a e7 b0 78 25  |(21)*32+128:..x%|
00000cf0  2c 79 25 29 3c 3e 30 e5  8d 64 60 46 0d 06 ea 0e  |,y%)<>0..d`F....|
00000d00  ec 78 25 2c 79 25 3a f1  70 24 0d 06 f4 05 f8 0d  |.x%,y%:.p$......|
00000d10  ff                                                |.|
00000d11
Snake2.m0
Snake2.m1
Snake2.m2
Snake2.m4
Snake2.m5