C · NumWorks calculator
NumWorks Game of Life
Conway's Game of Life as a C app for the NumWorks calculator
Generation 0
Overview
Conway's Game of Life on the NumWorks calculator's 320 by 240 screen, one pixel per cell. I wrote the first version in C, then rewrote and optimized it with AI around a bitmask.
How it works
One bit per cell
Two bit-packed 320 by 240 grids, 9,600 bytes each, swapped every generation.
Redraws only what changed
A third bitmap marks changed cells, and runs of same-colour cells are drawn as one rectangle.
Edit on the calculator
Arrow keys move a cursor, OK turns a cell on or off, and backspace advances one generation.
Built-in patterns
A tetromino, an acorn and the Gosper and Simkin glider guns, placed at the cursor.