Skip to content

Instantly share code, notes, and snippets.

def getCell(ruleList, left, right, mid):
bin = str(left) + str(mid) + str(right)
cell = 0
if bin == "000":
cell = ruleList[0]
elif bin == "001":
cell = ruleList[1]
elif bin == "010":