thearn/game-of-life
View on GitHub ↗ ★ 188 Python
Simple Python implementation of Conway's game of life and other cellular automata, computed using numpy.fft
9 mentions on Hacker News by 2 people: 1 story, 8 comments · first 2014-02-27 · latest 2025-05-02
20082026
-
scipy.ndimage.convolve / scipy.fftpack.dct* From https://github.com/thearn/game-of-life : > How it's written > The game grid is encoded as a simple m by n array (default 100x100 in the code) of zeros and ones. In each program, a state…
comment by westurner · 2023-07-30 · in Solar Powered Conways Game of Life -
…and the convolution theorem are some of my favorite tricks in math. A toy I made a few years back: https://github.com/thearn/game-of-life
comment by thearn4 · 2017-04-11 · in Fourier transform – A math tool used in optics, MP3s, JPEGs and more (2013) -
…- I implemented a fast GOL code in Python using FFT-based kernel convolution a few years back https://github.com/thearn/game-of-life
comment by thearn4 · 2016-08-08 · in Image Kernels explained visually -
Cool idea. I just made a quick implementation for those who want to use it/see it live: https://github.com/thearn/game-of-life/blob/master/image.py I'll make a quick .gif, if folks are interested.
comment by thearn4 · 2015-03-17 · in Conway's Game of Life – Trying It on Images -
Partially related: Here is a Python implementation of Conway's Game Of Life, using numpy.fft https://github.com/thearn/game-of-life This advances the game state image through re-expression of the game rules as a convolution filter.
comment by thearn4 · 2014-09-01 · in Fourier Image Filtering -
…way to generate a maze (imperfect, but fun): http://www.conwaylife.com/wiki/Maze quickstart: https://github.com/thearn/game-of-life/blob/master/rule_stri...
comment by thearn4 · 2014-03-25 · in How To Build A Maze -
…Also, I wrote a fast numpy implementation of Conway's game of life yesterday, for the heck of it. https://github.com/thearn/game-of-life
comment by thearn4 · 2014-02-27 · in Ask HN: What side projects are you working on?