Browse Source

update

main
Michael Pilosov 7 months ago
parent
commit
eb617e6d59
  1. 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…
Cancel
Save