Implementation of Gosper's hashlife algorithm. See johnhw.github.io/hashlife for a full explanation.
Usage:
from hashlife import construct, advance, expand
from lifeparsers import autoguess_life_file
from render import render_img
pat, _ = autoguess_life_file("lifep/gun30.lif")
node = construct(pat) # create quadtree
node_30 = advance(node, 30) # forward 30 generations
pts = expand(node_30) # convert to point list
render_img(pts) # render as image
Life patterns in lifep/
collected by Alan Hensel.