Skip to content

mikahoppe/BattleSnake

Repository files navigation

PhoenixProgramming (NodeJS)

Battlesnake AI written in Javascript for NodeJS.
copyrigth @ PhoenixProgramming

Participant in the BattleSnake 2019 tournament at Victoria Conference Center - Beginners Division.
Results: Top 12 out of nearly 115 battle snakes.
Thanks for the amazing organisation and the amazing time!

GitHub

git status
git add .
git commit -am "Message"
git push

Deploying to Heroku

heroku.com > select app
Deploy > Manual Deploy

Explanation of source code (index.js)

Z. 52 - 102
InitializeGameBoard

Z. 103 - 117
CalculateRemainingArea

Z. 118 - 138
GetNearestFoodAsPrimalFood

Z. 139 - 168
FoodInfluences

Z. 169 - 258
CountFreeFieldsInDirection

Z. 259 - 275
EvaluationOfFreeFieldsInDirection

Z. 276 - 347
TestForComingSnake

Z. 348 - 405
ChancingToBorderingFields

Z. 406 - 412
TestForObstacleAroundSnakesHead

Z. 413 - 422
ObstacleOnOffset()

Z. 423 - 446
ObstacleOnTile()

Z. 447 - 457
ObstacleOnOffsetOpponent()

Z. 458 - 465
logs

Z. 466 - 480
ResponseData

About

Battle Snake 2019

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published