Skip to content

My 2019 BattleSnake Expert division competition entry minimax snake - OpieToo.

Notifications You must be signed in to change notification settings

GriffinLedingham/opietoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpieToo

A minimax look-ahead AI for BattleSnake 2019 written in TypeScript.

Requirements

  • Node 9.4.0+

Setup

  • npm install

Usage

  • 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.

Tests

  • 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.

About

My 2019 BattleSnake Expert division competition entry minimax snake - OpieToo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published