MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / create_canvas

Function create_canvas

cellular_automata/game_of_life.py:44–46  ·  view source on GitHub ↗
(size: int)

Source from the content-addressed store, hash-verified

42
43
44def create_canvas(size: int) -> list[list[bool]]:
45 canvas = [[False for i in range(size)] for j in range(size)]
46 return canvas
47
48
49def seed(canvas: list[list[bool]]) -> None:

Callers 2

runFunction · 0.85
game_of_life.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected