Skip to content

Instantly share code, notes, and snippets.

@robwiss
robwiss / BunkerAdvantage.ipynb
Created October 8, 2013 20:50
Analysis of the advantage given by bunkers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robwiss
robwiss / numpy gol engine
Created October 1, 2013 16:33
version of Nippashish's numpy gol engine that implements last_step
import numpy as np
from scipy import signal
import itertools
class Grid(object):
def __init__(self, rows, cols):
self._grid = np.zeros((rows, cols), dtype=np.float)
self._neighbourhood = np.array([
[ 1, 1, 1 ],
[ 1, 0, 1 ],