gaming.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
spec.md |
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'