Skip to content

Instantly share code, notes, and snippets.

from collections import namedtuple
ALIVE = '*'
EMPTY = '-'
Query = namedtuple('Query',('y','x'))
Transition = namedtuple('Transition', ('y', 'x', 'state'))
TICK = object()
class MyReturn(Exception):
def __init__(self, value):