Vitaliy-Yarovuy / snakebattle

EPAM BOT CHALLENGE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

EPAM BOT CHALLENGE


Languages

Language:JavaScript 98.4%Language:HTML 1.6%