Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 742 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 742 Bytes

Snake battle

JavaScript Bot example for UI challenge

Useful Links

Quick Start

Following steps will execute demo bot in browser and will connect it to game server

  • Copy game URL and replace it in .env file
  • Install NodeJS
  • Install dependencies: npm install
  • Start test page: npm run start
  • Open browser in http://localhost:PORT/

How to write your bot

Open /src/bot.js file and replace example code with your own

function getNextSnakeMove(board) {
    // Your code goes here
}