I made this for the unexpanded VIC-20:3
0 def fn l(i)=a%(y-i,x-i)+a%(y-i,x)+a%(y-i,x+i)+a%(y,x-i)+a%(y,x+i)+a%(y+i,x-i)+a%(y+i,x)+a%(y+o,x+o):poke36879,8:tr%=20:tc%=21:dim a%(tr%,tc%),b%(tr%,tc%):h=.22:o=1:sr%=3:er%=18:ec%=19:c=.:g%=.:c1=2:c2=3:gosub 1000
1 for y=.to tr%:for x=.to tc%:a%(y,x)=b%(y,x):if a%(y,x)=.then print" ";:goto
2 print"*";to tc%-o:c=.:c=fn l(o):if a%(y,x)=o and c<>c1and c<>c2then b%(y,x)=.:goto 5
3 next x,y:print "generation:";g%;"{home}";:g%=g%+o:for y=o to tr%-o:for x=o
4 if a%(y,x)=.and c=c2then b%(y,x)=ohartnell circa 1983 in turn based upon conway's game of life{home}";:for y=sr% to er%:for x=sr% to ec%:b%(y,x)=rnd(.)+h:next x,y:return
5 next x,y:if g%<32768 then goto 1
6 goto6:donkeysoft
1000 print"{clear}{green}pet colonies, based upon space colony by tim
Programmed with CBM PRG Studio.https://github.com/sbebbers/PET-Colonies#pet-colonies-64-for-the-commodore-64128-and-compatibles
The Commodore C64/128 version is here ->
Obviously, with it being BASIC, it's quite slow. Although with an acceleratorand BLITZ BASIC it's pretty quick.
Regards,
Shaun
Do you have any additional information on Space Colony?
I found a program by Tim Hartnell called Evolution, published in his"Symphony for a Melancholy Computer", and -- according to Hartnell -- plagiarized by someone called R W Moore in Vic Computing 04/1982.
I wrote a Game of Life BASIC program for the Commodore 64 a few years ago,but it was painfully slow. I developed some ideas for reducing the number of memory accesses and did plan to rewrite it in assembly language, but that never
Chris
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495944:36:36 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 287,036 |