Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
53
def
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
59
def
run(canvas):
Callers
1
game_o_life.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected