Show HN: Conway's Game of Life in the terminal
github.com
github.com
Then again, this implementation has the same limitations. However, unlike the APL code, this one works in a terminal.
To the author, I see the code has a hard-coded width/height. You can get the terminal size from ncurses. The 10x10 default is entirely too small to see interesting patterns. I made it 40x10 so I could take a better look.
I find it hard to distinguish between alive/dead. I changed it to an asterisk for alive and a space for dead. That seemed to be better.
There seems to be a bug in the code. The blinker goes between:
* *
* and * *
*
Wild thought - what about using the Braille patterns to show a higher density? They won't be evenly aligned, but it might be interesting.