Surround the cat
A real grid chase: place walls on the printable 4-12 board and the cat moves one cell per turn by a greedy rule (most open exits first, then furthest from the centre). No legal move means you surrounded it and the page shows the win panel with your step count; reaching the border means it escaped. The same seed plus the same clicks always gives the same ending, and every figure comes from the live position.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Surround the cat
Click an empty cell to place a wall (or move the board cursor with the arrow keys and press Enter). The cat moves one cell immediately: block every exit to win, let it reach the border and it escapes.
- Steps
- 0
- Walls placed
- 0 / 35
- Open exits
- 4
- From border
- 2
- Free cells
- 35
- Seed print
- 72497
Keyboard: arrow keys / WASD move the board cursor, Enter or Space places a wall.
Seed print: 72497
Row 3, column 3: cat
Move log
0 steps so far
No wall yet - click an empty cell on the board first.
...... ...... ..C... ...... ...... ......
What this tool does
- Click empty cells to wall the cat in; press "Undo move" whenever you misclick.
- Replay one seed and compare with a friend who surrounds the same cat with fewer walls.
Example
Input
Seed demo, 6x6 board, cat in the centre (3,3); click 2,3 then 4,2 then 1,1 then 3,1 then 1,2 then 3,3 then 2,1 then 2,2
Output
Status: Surrounded (win) · step 8 · walls 8 · cat at 3,2 · 0 open exits · 1 cell from the border Win panel: surrounded on step 8 with 8 walls, leaving the cat zero open exits. Board text (C = cat, # = wall, . = empty): ##.... ###... #C#... .#.... ...... ......
Frequently asked questions
How do I play?
Click an empty cell to place a wall (on the keyboard, move the cursor with the arrow keys / WASD and press Enter or Space). After every wall the cat moves once: it prefers the neighbour with the most open exits, then the one furthest from the centre, and ties are broken by a seed-determined order.
When do I win or lose?
The cat is surrounded when all four neighbours are walls or the board border, and a green win panel appears. If the cat steps onto a border cell (for example row 1 or column 6) it escapes and the status line says so.
Is the randomness reproducible?
Yes. The tie-break order comes from the seed, so the same seed plus the same clicks gives exactly the same moves and ending, and the stats show a five-digit seed print. Only a different seed can change the outcome.
What does the hint do?
It really simulates every cell that can still take a wall (place the wall, let the cat move by the rules) and proposes the cell that leaves the cat with the fewest open exits, together with that number.
What does this tool not do?
No online multiplayer and no invented win rates: the board, the move log, the free cells and the distance to the border all come from the current position.
Keywords:surround the cat