How to play cornered: turn-based escape puzzle rules

Updated

Play cornered

On this page

cornered is a turn-based escape puzzle you play in the browser. You are the green orb on a small walled grid. Red hunters chase you, and every time you move one square they move two or three, depending on their type. The only way out is one gap in the outer edge.

It runs on a phone and keeps working if your connection drops after the page has loaded.

The goal, in one sentence

Step out through the gap in the edge before a hunter lands on you.

The cornered start screen with Solo, Multiplayer and Daily buttons and the difficulty selector set to medium Each difficulty has its own board size, hunter roster and hint allowance, and keeps its own level progress and best stars.

The rules

  • The board is a square grid with walls on the edges between cells. The outer frame is walled all the way round except for one gap, the exit.
  • Each turn you do one thing: move up, right, down or left, or wait.
  • Walking into a wall or off the board is a bump. Nothing happens, no turn passes and it does not count as a move.
  • Stepping through the exit wins at once. The hunters do not get to answer.
  • After every move or wait, every hunter takes its steps toward you.
  • If you step onto a hunter, or a hunter lands on you during its steps, you are caught.

How each hunter chooses its step

Hunters are simple, and that is what makes them beatable. On every step a hunter only considers the two directions that bring it closer to you.

  • The hound (a red four-point blade) tries sideways first, then up or down. It takes two steps a turn.
  • The stalker (an amber four-point blade with a slit eye) tries up or down first, then sideways. It also takes two steps a turn.
  • The brute (a pink six-point blade) tries sideways first, like the hound, but takes three steps a turn.

A direction only counts if it closes the gap on that axis, stays on the board, does not cross a wall and does not land on another hunter. If neither direction works, the hunter stands still for that step. The dots under each hunter show how many steps it takes.

When there is more than one hunter they take turns step by step: every hunter takes its first step in order, then every hunter with a second step takes it, and the brute finishes with its third.

A medium level 1 cornered board before the first move: the green orb, one hound with two dots under it, interior walls and a glowing exit gap in the top edge The count under each hunter is its steps per turn. Compare it to the number of squares between you and that hunter before every move.

The catch arithmetic

All the danger comes down to one comparison. After your move, a hunter with open ground between you walks its full step count toward you, so you are caught when the squares between you, counted along the grid (columns apart plus rows apart), are no more than its steps.

Checked against the movement code, on an empty board with a hound (2 steps) two squares straight above you:

  • If you wait or step toward it, you are caught: it walks both steps.
  • If you step away, it ends one square behind you and you live.
  • A hound one column across and one row up is also two squares away, and also catches you if you stay, because it uses one step for each axis.

The brute (3 steps) is the same with a distance of three. That is why a brute three squares away is as dangerous as a hound two squares away, and why it can only be avoided by leaving that range or putting a wall in its path.

Why walls matter so much

A hunter never steps away from you to walk round a wall. Put a wall between you and a hunter and it presses against that wall, stuck, while you walk away. Every board is built so that the obvious route to the exit gets you caught; the way out is to lead the hunters into dead ends first.

Because the hound goes sideways first and the stalker goes up or down first, the same wall traps them in different places. Reading which hunter a wall will catch is most of the game.

Wait is a move

Waiting keeps you still while the hunters take their steps. It often is the best move: it lets a hunter walk the last square into a trap before you run. Press space or the full stop key, press the wait button, or tap yourself.

Controls

  • Arrow keys or WASD move. Space or . waits.
  • Z or Backspace undoes, R restarts, H shows a hint.
  • On a phone, swipe in a direction, tap a square next to you to step there, or tap yourself to wait.
  • Undo, wait, hint and restart are also buttons under the board.

Reading a position before you move

  1. Find each hunter’s preferred axis. A hound and a brute try sideways first, a stalker tries up or down first. Imagine each step for each hunter and see where it stops against a wall.
  2. Check the range. Add the columns and rows between you and each hunter and compare with its steps.
  3. Look for a single square that is safe from all of them. With two or three hunters, a move that dodges one can walk you into the range of another.
  4. Consider waiting. If every move spends a safe square, waiting can be the only move that keeps you out of range while a hunter shuffles against a wall.

Waiting counts as a move. It adds one to your move count, and the solver counts waits in par too, so a par path may contain them.

Undo and restart

Undo puts the board back exactly as it was before your last move, as many times as you like. Restart goes back to the start of the board, but hints you have already spent stay spent. Your move count is the length of your current path, so moves you undo never count against you.

Par and stars

Every board is checked by a solver before you see it, so there is always a way out. The solver also finds the fewest moves out: that number is par.

  • Escape at par or better with no hints: three stars.
  • Within three moves of par with at most one hint: two stars.
  • Any other escape: one star.

Hints

A hint solves the board from where you are standing and shows the next best move. Easy gives three hints per board, medium two and hard one. If you have already walked into a position with no way out, the hint says so and is not used up. Undo a move or two and ask again.

How the boards are made

Boards are not drawn by hand. The generator rolls walls with a probability of 20% per edge on easy, 22% on medium and 24% on hard, and keeps only boards where every cell can reach every other. The exit is placed on a random side, you start at least four squares (grid distance, ignoring walls) from the exit square on easy and medium or five on hard, and each hunter starts at least three squares from you (five for a brute).

A breadth-first solver then plays the board out. A board that cannot be escaped is thrown away. For the rest, the generator tries up to 700 candidates and prefers one whose shortest escape falls in the target range for that level and where simply walking the shortest route to the exit gets you caught. That is the reason the obvious path is usually wrong. If it cannot build a solvable board with the full roster of hunters, it retries with one fewer.

The same solver gives you par and your hints.

Because the seed comes only from the level and the difficulty, level 7 on medium is the same board for everyone, and so is every other level. A few generated pars, run from the real generator: easy levels 1 to 6 have par 7, 8, 7, 7, 7 and 8; medium level 3, where the stalker first appears, has par 9; hard level 12 has par 26 with three hunters.

The levels

  • Easy is a 5 by 5 board with one hound.
  • Medium is 6 by 6. A stalker joins the hound from level 3.
  • Hard is 7 by 7 with a hound and a stalker, and a three-step brute joins from level 5. Solutions are long and you get one hint.

Each difficulty keeps its own level progress and your best stars on every level. The target length of the shortest escape grows with the level number, with a cap: on easy it climbs from about 5 to 9 up to 9 to 14, on medium from 8 to 14 up to 13 to 20, and on hard from 12 to 20 up to 18 to 28.

A practice routine

  1. On easy, play to level 4 or so. With one hound the only skill is wall use, so learn how the hound sticks against a wall.
  2. On medium, spend time on level 3, where the stalker joins. The same wall now pins the two hunters in different places, which is the main idea of the game.
  3. On hard, use waiting deliberately and save the one hint for after you have tried undoing the position first.

The daily board and challenges

The daily board is built from the UTC date and the difficulty, so every player on a difficulty gets the same walls, exit, start square and hunters. It is tuned like level 8: the generator aims for a shortest escape of 7 to 13 moves on easy, 12 to 18 on medium and 16 to 28 on hard.

Your first move that is not a bump into a wall spends the scored attempt. Being caught does not end it: undo or restart and carry on, and only the path that escapes counts. Start the daily again after that and it is marked practice. The server replays your moves from the day’s seed before it stores the result, and keeps only your first escape of the day for each difficulty. The same replay check applies to solo levels, so a score cannot be typed in: the server rebuilds the board and plays your list of moves, and refuses it if it bumps a wall, gets caught or does not end in the exit.

After an escape, press challenge a friend. The link opens the exact same board for your friend and shows how many moves they have to beat. On a daily board the link keeps working after midnight UTC, as an unscored challenge.

What is not guaranteed

A solver proves that every board can be escaped, but not that it is fun or that par is easy to find: par is the shortest path a breadth-first search finds, which can be a route that waits where a human would not. The generator is tuned to prefer boards in the target length range, and it can accept a board outside the target range, or use fewer hunters, if it cannot build a better one in budget.

Strategy and common mistakes

  • Read the distance. You move first, then the hunters step. With a clear path, a hound or stalker two squares away catches you if you wait or step toward it, and a brute catches you from three. Stepping away leaves you one square clear.
  • Use the same-row trick. A hunter only considers directions that close the gap. A hound on your row with a wall between you has no sideways step and no vertical gap to close, so it stands still for as long as you stay on that row.
  • Do not take the obvious route. The generator prefers boards where walking straight at the exit gets you caught, so the shortest-looking path is usually the trap.
  • Mind the second hunter. Hunters cannot land on each other, so a hunter stuck behind another one stays put too. Lining them up can hold both.
  • Hold your hints. Every hint ends three stars, and on hard you only get one. If you have walked into a dead end, undo first: a hint that finds no way out is not used up.

Where to go next

cat-watch is another puzzle where something chases on a fixed schedule: a cat steps toward its target after every move you make. ricochet rates rooms against a solver-checked par, with a similar star scheme.

Play cornered →

Written by the developer from the game's own code. Spot a mistake? hello@onedge.fun