UNPKG

snake-ai-game

Version:

A terminal-based snake game powered by AI.

13 lines 304 B
export const GAME_CONSTANTS = { DEFAULT_TIME_LIMIT: 30, DEFAULT_GRID_SIZE: 15, DEFAULT_SNAKE_START: [ { x: 5, y: 5 }, { x: 5, y: 6 }, { x: 5, y: 7 } ], DEFAULT_FOOD_POSITION: { x: 8, y: 5 }, DEFAULT_DIRECTION: 'UP' as const, MIN_TIME_LIMIT: 10, MAX_TIME_LIMIT: 300 } as const;