This commit is contained in:
Michael Pilosov 2024-05-09 17:38:23 -06:00
parent 45c1a937e4
commit eb617e6d59

View File

@ -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