r
/
fifth
1
Fork 0

Functional CAM generator

master
Joshua Potter 2015-06-06 19:48:42 -04:00
parent 94211ab723
commit b1c40fc8e6
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class CAMParser:
"""
x, y = list(map(int, x)), list(map(int, y))
def next_state(plane, neighborhood, *args):
if plane.grid.flat[neighborhood.flat_index]:
if plane.grid.flat[neighborhood.flat_index][neighborhood.bit_index]:
return int(neighborhood.total in x)
else:
return int(neighborhood.total in y)