Skip to content

Instantly share code, notes, and snippets.

@yosemitebandit
yosemitebandit / cells.py
Created December 11, 2012 06:11 — forked from thenoviceoof/cells.py
Randomly generate automata
#!/usr/bin/env python
# commented version of a gist from @thenoviceoof
import os
import time
import random
# capture the screen size and find the middle-ish pixel
rows, columns = os.popen('stty size', 'r').read().split()