Conway's Game of Life, implemented as a shell script.
This repo contains code for CircuitPython implementation of the famous 'Conway's Game of Life'. It uses Adafruit's adafruit_st7735r library to draw the game on a 128x160 pixel color TFT LCD. This has been tested on Raspberry Pi Pico.
Seems like a good PoC implementation of the Game of Life to learn how it works.
This is the Game of Life written in Python 3.10. It uses tkinter for the GUI; in fact I wrote it as an exercise in using tkinter as it's been a couple years since I last played with it.
Each cell of the game is a canvas rectangle. The id of each rectangle is stored in an matrix, shifted left by two. The bottom two bits of each shifted id are used to store the current state of the cell and the next state of the cell.
Lifewiki is /the/ wiki to visit if you're interested in Conway's Game of Life in particular, or cellular automata in general. You can get lost here for weeks, so take your time.