My First “Conway's Game of Life” Program in Tribute to John Conway
github.com
github.com
Life was one of my first introductions to programming in school. Mr. Conway also a strong impression on me through his interviews with Numberphile, which I'd recommend, not so much for their mathematical content, but for the very human portrait of a genius in his later years.
I names it Seagull because “Conway’s Game of Life” => CGoL, lol so playful.
The day before Conway passed, I was playing with some procedural art from cellular automata: https://cellular-sprites.herokuapp.com
Everything felt surreal the morning I read the news
https://www.drdobbs.com/jvm/an-algorithm-for-compressing-spa...
Some time afterwards, there was a project to resurrect ITS, which I got involved in. After it was up and running, initially on the SIMH simulator, and later more stably on Ken Harrenstien's klh10 emulator, I wrote a new version of Life for it in MIDAS (PDP-10) assembly language, which is now located at http://www.fmjlang.co.uk/its/life.txt
This drew the attention of Dan Weinreb, who provided some information on the original AI Lab version: https://web.archive.org/web/20050209065438/http://lispmeiste...
I tried using ffmpeg to create a video instead of a gif, but I struggled getting it to correctly reproduce my colours and I couldn't figure out how to handle the occasional variation in time between frames in my capture.
Or Loom -> MP4 -> ezgif
There's a lack of good GIF making tools
Unfortunately, apngasm does not seem to handle gamma correctly, resulting in more muted colours in the output APNG than in the input PNGs. If I can find the time, I'll fix that up and open-source the various tweaks I made. My current results are[4][5], though I may update those images as I improve them.
On a related note, it seems that it's no longer possible to remove the window decorations from gnome-terminal on Ubuntu 19.10, which is unfortunate for ttygif captures. I switched to my Ubuntu 18.04 machine to do a capture without the window border.
[1]: https://caniuse.com/#feat=apng [2]: https://github.com/apngasm/apngasm [3]: https://github.com/icholy/ttygif [4]: https://slerp.xyz/demos/ascii-euler/block.png [5]: https://slerp.xyz/demos/ascii-euler/waterfall.png
[link redacted]
I remember it being the first thing I wrote in Turbo Pascal for the IBM PC back in 1984 or so.
https://github.com/manaskarekar/dendron
Demo seeded with an R-Pentonimo: https://www.youtube.com/watch?v=B3P-LnrXE3k
It supports RLEs [1] so you can quickly create some known shapes or test your own.
Crash course on RLEs:
b=dead, o=alive, $=new line
This is the RLE of xkcd's tribute to John Conway [2]:
2b3o$2bobo$2bobo$3bo$ob3o$bobobo$3bo2bo$2bobo$2bobo!
You can discover plenty of patterns with their RLEs on the Life Wiki [3]
Twitch Plays Conway's Game Of Life has a database of hundreds of patterns.
To learn patterns here's a 40-minute video you can quickly go through: https://www.youtube.com/watch?v=u4XgALyX6w8
For instance you can make a Sir Robin [4] at the origin this way:
!SirRobin 0.0
or the xkcd pattern:
!xkcd 0.0
We also added our own twist, with color rules that lead to the Epic Toy Store Pixel Art [5] and Epic Masterpiece Pixel Art Decoration [6]
---
[1] http://www.conwaylife.com/wiki/Run_Length_Encoded
[3] https://www.conwaylife.com/wiki/Main_Page
[4] https://www.conwaylife.com/wiki/Sir_Robin