Skip to content

SDemonUA/epam-bot-challange

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published