Files
vim-snake/example
pastilhas 5cbb2ee94c refactor: make all GameOptions optional with sensible defaults
- cols defaults to 30 (was required)
- rows defaults to 20 (was required)
- timeLimit and startingLevel remain optional
- Can now call useGame() with no arguments
- Example: useGame(), useGame({}), useGame({ startingLevel: 5 })
2025-10-31 00:19:43 +00:00
..
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00
2025-10-16 12:25:52 +01:00

example

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.23. Bun is a fast all-in-one JavaScript runtime.