GAME-2D-006 // ARCADE WASM
Snake Contiguous Grid Hamiltonian
Grid-locked arcade snake enforcing unit-Manhattan path contiguity, zero duplicate cells, tail-vacating legal transitions, and an explicit full-board victory state.
Interactive Arcade Stage
Arrow / WASD Steer snakeP Pause or resumeR Reset gridM Toggle Human or AI
Steps: 0
Invariant: OK
Metric: 0.0
Governing Invariant & Equation
Contiguity & Length Invariant
Verification Contract & Falsification
Contiguous path manhattan(body[i], body[i+1]) == 1, zero duplicate cells, body.len() == init_len + food_eaten, tail-vacating legal step when not growing, food on free cell, and safe Victory when free.is_empty().
Falsified if body segments split, snake dies chasing its own vacating tail, food spawns on occupied cell, or full board panics.