This is the game of life implemented using only 64 bits of storage for the bitwise challenge.
# start from a random initial state
python gol.py
# start from a given state
python gol.py e0a0e00
70402simple glider7700lines cycle3030a box (ok maybe not that interesting)e0a0e00complex cycle
The state is treated as an 8x8 grid of 1-bit cells (alive or dead).
The number of neighbors is counted using a pre-computed bitmask for each position and python's built-in int.bit_count().
The rest is pretty straightforward. Not a lot of interesting tricks we can do here.