This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
GhostShadow's profile picture

Conway's Game Of Life(Touchscreen Monitor)

Started by GhostShadow, 10 August 2013 - 09:03 AM
GhostShadow #1
Posted 10 August 2013 - 11:03 AM
Rather simple Conway's Game of Life in Computercraft.

http://pastebin.com/FmJSLAPm

Touch the screen to add/remove cells.
Monitors must be on RIGHT.



Additional Links:

http://www.conwaylife.com/wiki/Conway's_Game_of_Life

https://www.google.co.in/search?q=conway's+game+of+life&oq=conway's+&aqs=chrome.0.0j69i57j0l2j69i61l2.6973j0&sourceid=chrome&ie=UTF-8
joshmanisdabomb #2
Posted 10 August 2013 - 01:40 PM
Was this idea sparked by computerphile?
Also, please make a terminal version. Would be nice! :)/>
GhostShadow #3
Posted 11 August 2013 - 01:15 AM
Was this idea sparked by computerphile?
Also, please make a terminal version. Would be nice! :)/>
OMG Yes! I am a subscriber of computerphile too! :)/>

The terminal window is way too small to do anything decently complex. :(/>
Actually, I ported the program to touch screen monitor as the terminal window was too small for the stuff I wanted to do.
Yevano #4
Posted 11 August 2013 - 01:29 AM
The terminal window is way too small to do anything decently complex. :(/>
Actually, I ported the program to touch screen monitor as the terminal window was too small for the stuff I wanted to do.

You could always add camera panning, and maybe camera zooming. The latter would require some sort of shading of pixels where 2 or more cells are drawn for it to look pretty, though. If you were to do this and make the field infinite, you would have to make some cell checking optimizations. For example, the easiest and most effective would be to only check cells which were changed or had neighboring cells which have changed.