update
This commit is contained in:
parent
45c1a937e4
commit
eb617e6d59
2
snake.py
2
snake.py
@ -10,7 +10,7 @@ def main(stdscr):
|
|||||||
stdscr.timeout(100) # Refresh rate
|
stdscr.timeout(100) # Refresh rate
|
||||||
|
|
||||||
# Initialize the board
|
# Initialize the board
|
||||||
h, w = 20, 40 # Board dimensions
|
h, w = 40, 80 # Board dimensions
|
||||||
board = np.zeros((h, w), dtype=int)
|
board = np.zeros((h, w), dtype=int)
|
||||||
snake = [(h // 2, w // 2)]
|
snake = [(h // 2, w // 2)]
|
||||||
board[h // 2, w // 2] = 1
|
board[h // 2, w // 2] = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user