Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def createBoard(width, height):
- " " " Creates a board of cells " " "
- return [createOneRow(width)] * height ### multiplies createOneRow (the width of the row) by the height(how many rows)
- def createOneRow(x):
- zerolist = [0] * x
- return zerolist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement