MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / simulate

Function simulate

example_code/item_071.py:189–194  ·  view source on GitHub ↗
(grid)

Source from the content-addressed store, hash-verified

187
188print("Example 7")
189def simulate(grid):
190 next_grid = Grid(grid.height, grid.width)
191 for y in range(grid.height):
192 for x in range(grid.width):
193 step_cell(y, x, grid.get, next_grid.set)
194 return next_grid
195
196
197print("Example 8")

Callers 1

item_071.pyFile · 0.70

Calls 2

GridClass · 0.70
step_cellFunction · 0.70

Tested by

no test coverage detected