

Trap the Cat
Block hexagons to corner a cat that always finds the shortest way out in Trap the Cat, the classic Chat Noir logic puzzle.
Trap the Cat is a hex-grid containment puzzle: the cat walks one step for every wall you place and always takes the shortest open route to the board edge. This guide covers the 11 by 11 board, the 30 walls already on it at the start, and the sealing order that actually closes the ring.
Every hexagon the cat can stand on is scored by how many steps it takes to reach open space beyond the board. When it is the cat's turn, it looks at its six neighbours, ignores walls and anything occupied, and steps onto the neighbour with the lowest score. Escape happens the moment one of its neighbours sits outside the playfield, which is why the cat keeps drifting toward the rim even when you are blocking somewhere else entirely.
The practical consequence is that your wall does not stall the cat. It only changes the score of the cells behind that wall. If you block the shortest corridor, the cat recalculates from its current hexagon and takes the next cheapest one, which is often sideways along the rim rather than backward into the middle. Blocking near the cat rarely helps; blocking where the score is low does.
| Element | What it does |
|---|---|
| Visible board | An 11 by 11 hexagon field, 121 cells, drawn with offset columns |
| Cat start | The centre hexagon, so it begins five rings from every rim |
| Starting walls | 30 walls dropped at random across the field, never on the cat |
| Board rim | The cells just past the last playable ring; reaching one ends the run |
| Reset button | Clears the field and drops a fresh 30 walls |
Because the 30 starting walls are random, no two rounds open the same way. Some seeds hand you a nearly open field where the cat is two or three steps from a gap, and some hand you a cluttered one where three or four taps finish the job. Read the starting layout before touching anything: the walls already sitting between the cat and the nearest rim are worth more than any wall you add later.
You spend one cat step per wall, so a plan that needs ten walls and leaves one end open for seven of them is worse than a plan that needs six walls and stays airtight from the fifth.
Tapping the cat's neighbour
Feels urgent, gains nothingA wall touching the cat only removes one of six options. The other five are scored again immediately, and one of them usually points at the rim you have not covered yet.
Building from the rim inward
Closes the exit lastStarting at the edge means the cat is free to leave through the middle of the ring you have not built. Start from the side that is already partly closed and grow toward the open side.
Ignoring the random walls
Wastes a third of your movesThe 30 starting walls are free enclosure. Every one you connect to saves a tap, so the strongest opening is always the ring that already has three or four of them in it.
There are no keys to learn. A single tap or click on any hexagon turns it into a wall and hands the move to the cat; the cat then animates one hop and control returns to you. The Reset button in the corner repaints the board with a fresh set of walls, and the board, the cat and the walls are all drawn as scalable vector shapes, so the same taps work on a phone held upright and at any window size.
It scores every reachable hexagon by the number of steps to open space and steps onto the cheapest neighbour of its six. It recalculates after each wall you place, so it never walks into a dead end on purpose.
The visible field is 11 by 11, which is 121 hexagons. Thirty of them start as walls and the cat starts on the centre one.
Every wall you place costs the cat one step. That is the whole budget of the puzzle: you are buying walls with the cat's patience.
No. Some random starting layouts leave the cat a two-step corridor to the rim, and no wall order closes it in time. Reset drops a new set of 30 walls.
Yes, every visible hexagon can be built on, including the ones on the outer ring. Sealing the rim directly is viable, but it costs one tap per cell and the cat usually escapes through the side you have not reached.
Chat Noir is the early Flash browser puzzle this follows: circle a black cat on a hexagon grid by clicking cells to block its path. The rules are the same here, with a larger set of random walls placed before the first move.










