Nathan Woloshyn

Battlesnake

Game
Pace

Loading the engine…

You are red. Steer with the arrow keys or W A S D; on a phone, swipe on the board or use the buttons under it. All the snakes move at the same time. Hit a wall, a snake's body or run out of health and you are out; eat (the grey dots) to grow and to refill your health, which drops by one each turn. When two heads meet, the longer snake survives. The last snake on the board wins.

At the step pace the game waits for you, and each key press is one turn. The four games are Battlesnake's own: a duel against one snake, standard against three, royale, where the shaded cells that creep in from the edges drain health, and constrictor, where there is no food and every snake grows each turn.

The other snakes are AlphaSlinky, from slinky: a neural network trained by self-play, guiding a tree search, as in AlphaZero. The Rust engine that plays for it online is compiled to WebAssembly here and runs in your browser, thinking while you do.