Skip to content

Commit e0b8edb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 28d80c8 commit e0b8edb

File tree

1 file changed

+3
-1
lines changed
  • examples/hex_snowflake/hex_snowflake

1 file changed

+3
-1
lines changed

examples/hex_snowflake/hex_snowflake/cell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def determine_state(self):
4444
if not self.is_alive and self.is_considered:
4545
# Get the neighbors and apply the rules on whether to be alive or dead
4646
# at the next tick.
47-
live_neighbors = sum(neighbor.is_alive for neighbor in self.cell.neighborhood.agents)
47+
live_neighbors = sum(
48+
neighbor.is_alive for neighbor in self.cell.neighborhood.agents
49+
)
4850

4951
if live_neighbors == 1:
5052
self._next_state = self.ALIVE

0 commit comments

Comments
 (0)