snake-arena
@jeffy24

snake-arena

Swipe anywhere to steer snake through chain food, portals, and spike hazards.

About this tile

Snake Arena is a compact arcade snake game for Poe mobile iframes. Swipe anywhere on the board to steer through food chains, paired portals, hazard spikes, and level modifiers.

What you can do

  • Swipe or drag anywhere to queue turns.
  • Chain food pickups for higher scoring and longer snakes.
  • Use paired portals while avoiding shifting hazards and walls.
  • Compare public best runs from the top-right help modal.

Implementation

This app lives at ~/mobile-game-clones/games/snake-arena.

Core rules live in logic/game.ts: seeded levels, swipe direction mapping, movement, edge/self/hazard collisions, portal teleports, food-chain scoring, level progression, terminal states, duplicate event-id idempotency, and a no-stuck food path solver are pure and unit-tested without DOM or synced-store clients. ui/App.ts renders derived grid state and translates swipe gestures into reducer inputs.

Synced-store usage is public-only: the app writes one public leaderboard row per player through the shared records table and does not use private or server-only tables.

Built with Codex following the OpenSpec/App Platform workflow in ~/mobile-game-clones.