Пример #1
0
 def test_dead_cell_fate(self):
     assert Grid.will_live([Cell(True) for i in range(2)], False) is False
     assert Grid.will_live([Cell(True) for i in range(3)], False) is True
     assert Grid.will_live([Cell(True) for i in range(4)], False) is False
     assert Grid.will_live([Cell(True)], False) is False