All games / N Queens
N Queens
Place every queen so none can attack another along a row, column or diagonal.
Preparing the board…
☆ 0Your progress saves in this browser.
Achievements0 earned
How to play N Queens
Place as many queens as there are rows. Queens attack along any row, column or diagonal, so each one needs clear lines from every other queen. An exclamation mark identifies a queen involved in an attack. Tap an occupied square again to remove its queen. The puzzle is solved when the correct number of queens are all safe.
Try a different placement
Undo and Redo let you revisit your placements. Hint suggests one placement that can lead to a full solution, or explains why you need to move an existing queen. Seeking a hint records assistance and leaves the board for you to edit. Choose New for a fresh attempt, or Reset to empty the current board as practice.
Board sizes and controls
Choose a 4 × 4, 6 × 6, 8 × 8 or 10 × 10 board. Tap a square to place or remove a queen. On a keyboard, use the arrows to move focus and Enter or Space to act. Ctrl/Command + Z and Shift + Ctrl/Command + Z undo and redo while the board is focused. Use Large squares for a scrollable board with bigger cells.
Time, achievements and saved play
The clock starts on your first placement and pauses when you pause or switch away. Your first completion stops the clock. The game keeps records and achievements from eligible results even when you revisit a solution with Undo. Current placements and progress stay in this browser when storage is available.
Try No-guess Minesweeper, Hard Sudoku or browse all games.