Find a file
2025-10-04 23:02:31 +05:00
gaming.js oops 2025-10-04 23:02:31 +05:00
package-lock.json fix inexistence of this 2025-09-21 18:16:19 +05:00
package.json fix inexistence of this 2025-09-21 18:16:19 +05:00
README.md Add a README.md 2025-09-21 18:16:33 +05:00
spec.md ebcdic37 2025-09-21 18:16:32 +05:00

snake-gaming

A game of snake, played by bots. See spec.md on how to write one.

Usage

Install dependencies:

npm install

OR (if you don't have npm)

(mkdir node_modules && cd node_modules && curl https://git.kimapr.net/kimapr/klh-util.js/archive/master.tar.gz | tar zx && mv klh-util.js klh-util)

Run the game (assuming board width is 80, board height is 25, number of apples is 16, the command to execute your bot is './Your-Bot-Here'):

node gaming.js 80 25 16 './Your-Bot-Here'