home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1990 February
/
1990-02.d64
/
encode
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
1KB
|
42 lines
10 rem copyright 1990 compute! publications inc. - all rights reserved
20 print"[147][152]":poke53280,0:poke53281,11
30 if peek(49153)<>24 or peek(49157)<>196 then load"bp.ml",8,1
40 x=rnd(-11111)
50 sys 49152,4,2,4,4,0.25,0.9,0.02
60 sys 49167,1,"1000","0010"
70 sys 49167,2,"0100","0001"
80 sys 49167,3,"0010","1000"
90 sys 49167,4,"0001","0100"
100 print"[204]earning [208]atterns"
110 print
120 print"[212]he total error is:"
130 ti$="000000"
140 sys 49164,1
150 print"[212]ime spent learning : ";ti$:print:print"[210]esults:"
160 print" [204]ayer [204]ayer [204]ayer"
170 print" [207]ne [212]wo [212]hree"
180 sys49155,"1000"
190 print "1 0 0 0 -->";int(o2(1)+0.5);int(o2(2)+0.5);"-->";
200 for i= 1 to 4
210 print int(o3(i)+0.5);
220 next i
230 print
240 sys49155,"0100"
250 print "0 1 0 0 -->";int(o2(1)+0.5);int(o2(2)+0.5);"-->";
260 for i= 1 to 4
270 print int(o3(i)+0.5);
280 next i
290 print
300 sys49155,"0010"
310 print "0 0 1 0 -->";int(o2(1)+0.5);int(o2(2)+0.5);"-->";
320 for i= 1 to 4
330 print int(o3(i)+0.5);
340 next i
350 print
360 sys49155,"0001"
370 print "0 0 0 1 -->";int(o2(1)+0.5);int(o2(2)+0.5);"-->";
380 for i= 1 to 4
390 print int(o3(i)+0.5);
400 next i
410 print