Play / A small detour
Off the clock.
I love chess and sudoku. This little puzzle blends the moves of one with the patient logic of the other. Take a break and give it a go.
No timer. No rush. Just the next move.01 / N-Queens
Give every queen her space.
Place N queens on an N × N board so no two share a row, column, or diagonal.
Tap a square to place or remove a queen. Keyboard: focus the board, use arrow keys, then Enter or Space. Red squares and × marks mean a conflict; dots mark attacked squares.
Queens 0 / 8 · Conflicts 0 · Moves 0
Eight queens. One peaceful board. Where will you start?
Hints count toward your discoveries. Revealed solutions and solver demos do not. Reset clears the board, keeping your discoveries.
Watch the solver
Start from an empty board and watch it try, check, and backtrack. Editing the board stops the demo.
With reduced motion enabled, Play reveals the result instantly. Step still lets you inspect each decision.
02 / How it works
Try. Check. Take a step back.
Backtracking builds an answer one choice at a time. The solver tries a queen in the next row. If she attacks an earlier queen, it tries the next square. If a row has no safe squares left, it goes back and moves an earlier queen.
N-Queens is a classic example because the rules are simple, but each choice changes what is possible next. An 8 × 8 board has 92 solutions, or 12 unique patterns after rotations and reflections. Here, all 92 arrangements count separately. Your discoveries are saved in this browser when storage is available.