Skip to main content
Challenges Snake³
Misc Expert Algorithmic game: the Hamiltonian cycle and parity Solves: 2

Snake³

Author: CyberSamSU
Points
180
🐍 The snake in the cube

An odd copy turned up in an old games archive: Snake³. It is an ordinary snake game, except that it is played not on a plane but inside a 5×5×5 cube.

On every step the snake moves one cell in one of 6 directions (±x, ±y, ±z), grows when it eats food, and dies if it hits a wall of the cube or its own body. All of the game logic runs on the server: the page only sends the move and reset commands over WebSocket.

⚠️ There is just one rule: when the snake fills the whole cube (its length reaches 125), the server gives you the flag. There is no time limit and no limit on the number of moves.

🎯 Goal: fill the cube and get the flag. Reaching the first few dozen cells by hand is possible, but getting all the way to the end takes a plan (an algorithm).

🔎 Study what exactly the page sends to the server: the browser's developer tools say a lot. Sometimes even a simple game hides a mathematical trap...

🚩 Flag format: AIFT{...}
To start this challenge's lab, log in.
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −18 pts Log in
Hint 2 −36 pts Log in
Hint 3 −54 pts Log in
To submit a flag, log in.

First solvers

1. Odam 18.11.2026
2. Mirjaxon Qaxxarov 27.11.2026