Skip to content

Commit

Permalink
show ages
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsanavni committed Nov 10, 2023
1 parent 63b28b7 commit 984f5f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def update_cells(self):
for y in range(self.height):
if self.game.is_alive(x, y):
self.cells[(x, y)].config(bg='blue')
self.cells[(x, y)].config(text=self.game.get_age(x,y))
else:
self.cells[(x, y)].config(bg='grey')
self.cells[(x, y)].config(text='')

def test_tkinter_gui():
game = GameOfLife()
Expand Down

0 comments on commit 984f5f6

Please sign in to comment.