Training Snakes

This is to run several snakes of varying difficulty on https://play.battlesnake.io Search for them under the battlesnake user. ...

Running it

Run the snake server locally:

> ./scripts/run_snake

this should provide all snakes at different paths, i.e.:

Training Snakes

To help battlesnake attendees train and verify their snakes, we'll provide a pool of snakes with a gradient of difficulties.

Snake 0

  • Goes in a straight line (always in the longest direction)

Snake 1

  • Avoids walls

Snake 2

  • Avoids walls
  • Avoids snake segments

Snake 3

  • Avoids walls
  • Avoids snake segments
  • Eats first food in list

Snake 4

  • Avoids walls
  • Avoids snake segments
  • Eats orthoganally closest food

Snake 5

  • Avoids walls
  • Avoids snake segments
  • Eats orthoganally closest food

6/10 Snake

  • Avoids walls
  • Avoids snake segments
  • When hungry, eats closest food

7/10 Snake

  • Avoids walls
  • Avoids snake segments
  • When hungry, eats closest food
  • Goes for potential head/head kills of smaller snakes

8/10 Snake

  • Avoids walls
  • Avoids snake segments
  • When hungry, eats closest food
  • Goes for potential head/head kills of smaller snakes
  • Moves in to tail of snakes (when they aren't possibly eating)

9/10 Snake

  • Avoids walls
  • Avoids snake segments
  • When hungry, eats closest food
  • Goes for potential head/head kills of smaller snakes
  • Moves in to tail of snakes (when they aren't possibly eating)
  • Does not enter small spaces when larger space is an option.

Other Ideas

  • DOS food
  • honeypot food
  • empty path, instead of shortest path