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