MCPcopy Index your code
hub / github.com/geekcomputers/Python / seed

Function seed

game_of_life/game_o_life.py:53–56  ·  view source on GitHub ↗
(canvas)

Source from the content-addressed store, hash-verified

51
52
53def seed(canvas):
54 for i, row in enumerate(canvas):
55 for j, _ in enumerate(row):
56 canvas[i][j] = bool(random.getrandbits(1))
57
58
59def run(canvas):

Callers 1

game_o_life.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected