We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d80c8 commit e0b8edbCopy full SHA for e0b8edb
examples/hex_snowflake/hex_snowflake/cell.py
@@ -44,7 +44,9 @@ def determine_state(self):
44
if not self.is_alive and self.is_considered:
45
# Get the neighbors and apply the rules on whether to be alive or dead
46
# at the next tick.
47
- live_neighbors = sum(neighbor.is_alive for neighbor in self.cell.neighborhood.agents)
+ live_neighbors = sum(
48
+ neighbor.is_alive for neighbor in self.cell.neighborhood.agents
49
+ )
50
51
if live_neighbors == 1:
52
self._next_state = self.ALIVE
0 commit comments