A minimax look-ahead AI for BattleSnake 2019 written in TypeScript.
- Node 9.4.0+
npm install
npm run dev
Once running, the server will be accepting socket connections on port 5001
. This is the port that the snake can be reached at by the game server.
Configuration for the snake may all be found in the config/ directory, and adjusted as desired. The snake hooks into my BattleSnake recursion debugger for stepping through the decision trees of the snake.
npm run test
OpieToo also comes with a test suite of specific scenarios that it has lost to in the past. These tests were utilized to overcomes the weaknesses found in the AI, and the tests remain to make sure that future iterations don't go back on those changes. If seen fit, tests could be removed in future if the expected result is no longer the intended behaviour for the bot.