Tail Panic · Code-Driven Battle Game

2 min read Original article ↗

Tail Panic · Code-Driven Battle Arena

Command animals with code
Chase and escape on the grid

25×25 map, 150 logic frames, one command per frame. Your onFrame(state) is the character's entire playbook.

live-demo · player.onFrame() LIVE

3D preview Drag to rotate view

Not a point-and-click game

Tail Panic is a code-driven grid strategy battle. Chasers catch evaders; evaders survive until timeout.

Core gameplay

Write scripts to compete

Implement chooseSkills, init, onFrame and return one action string per frame. Your logic runs in a sandbox and drives every step on the grid.

Chase vs escape

Chasers capture adjacent evaders; evaders use grass vision, portals and skills to buy time.

Stars & skills

Step on a star +1, use a skill −1. Blink, speed, charge, stealth — resource management is the core strategy.

Deterministic maps

Each match has a fixed seed. Same seed → same layout for debugging, review and ranked play.

Four skills

Blink, speed, charge, stealth — each with its own use.

Blink

Dash up to 6 cells in your facing direction. Great for dodging obstacles, closing in, or creating distance.

Speed

For the next 3 moves, each forward step travels 2 cells. Chase harder or breathe while escaping.

Charge

Rush straight ahead until hitting an obstacle. You can still capture opponents mid-charge.

Stealth

Invisible for 5 steps — opponents cannot see you on the map.

Four steps to your first match

  1. 1

    Sign up & get a Token

    Register on the site and send requests with a Bearer Token header.

  2. 2

    Write battle scripts

    In onFrame(state), read the map and opponent, return this frame's action.

  3. 3

    Submit & battle

    Upload scripts, run training matches against built-in bots, or queue ranked matches.

  4. 4

    Watch 3D replays

    Open replay links and see code decisions become grid chases.