This is non-commercial site, its content is based on Atari 8-bit home computer contents and references.
If you feel your rights are violated by showing/using any part of contents of your product represented on this page,
please contact me immediatelly so I can remove it!
|
|
|
-
Entry name:Minilife
-
Category:Other
-
Publisher/Developer:BASIC 10-liner Contest 2019 (NOMAM 2019)
-
Year:2019
Listing 1
0GRAPHICS3:HY=10:HX=20:DIMO(HY+1,HX+1),N(HY+1,HX+1):COLOR3:PLOT0,0:DRAWTOHX+1,0:DRAWTOHX+1,HY+1 1DRAWTO0,HY+1:DRAWTO0,0:?"MINILIFE":DO:X=1:Y=1:?"Editmode.PlacecellsthenSPACE." 2POKE764,255:WHILEPEEK(764)<>33:COLORN(Y,X):PLOTX,Y:S=STICK(0):Y=Y+((S=13)-(S=14)) 3X=X+(S=7)-(S=11):IFX<1:X=HX:ENDIF:IFY<1:Y=HY:ENDIF:IFX>HX:X=1:ENDIF 4IFY>HY:Y=1:ENDIF:IF(STRIG(0)=0):N(Y,X)=NOTN(Y,X):PAUSE3:ENDIF:COLOR2:PLOTX,Y:PAUSE4 5WEND:IT=0:?"Generating.SPACEtostop.":POKE764,255:DO:FORY=1TOHY:FORX=1TOHX 6COLOR3:PLOTX,Y:O(Y,X)=N(Y,X):COLORO(Y,X):PLOTX,Y:NEXTX:NEXTY:IFPEEK(764)=33:EXIT:ENDIF 7FORY=1TOHY:FORX=1TOHX:Q=O(Y-1,X-1)+O(Y-1,X)+O(Y-1,X+1)+O(Y,X-1) 8Q=Q+O(Y,X+1)+O(Y+1,X-1)+O(Y+1,X)+O(Y+1,X+1):IFQ=3:N(Y,X)=1:ELSE 9IFQ=2:N(Y,X)=O(Y,X):ELSE:N(Y,X)=0:ENDIF:ENDIF:NEXTX:NEXTY:IT=IT+1:?IT:LOOP:LOOP 100REMMINILIFEby@kevinsavetz 110REMforthe201910-lineBASIC 120REMcontest. 130REMBasedontheConway'sGame 140REMofLifealgorithmat 150REMarchive.org/details/byte-magazine-1979-01/page/n91
References
Listing downloads
Copyright holder
