/tron-codingame-challenge

Simple flood fill algorithms based on greater available filled area for tron-codingame-challange

Primary LanguageJavaScript

tron-codingame-challange

https://www.codingame.com/ide/puzzle/tron-battle

Simple flood fill algorithms based on greater available filled area.

Ranked #: Silver league

Score: 17.48

Test locally

npm install
npm run local

Codingame Test

npm run bundle

Generate bundle, copy and paste the bundle.js file to codingame console and see the magic happening

Files

.
├── __tests__                     # Tests
├── src
    ├── bot.js                    # Algorithms
    ├── constants.js              # Basic information about board
    ├── helpers.js                # Just helper's function
    ├── main.js                   # Responsible to call bot and runner
    ├── runner.js                 # Simulate all steps of codding game
    └── README.md