Skip to content

johnhw/hashlife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Credits

Life patterns in lifep/ collected by Alan Hensel.

About

Implementation of Gosper's hashlife algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages