Skip to content
OFFPLAY

N-Queens

Place N queens so no two can attack each other.

🧠 Logic & Brain 1 2–10 min
Loading game…

About N-Queens

The famous eight queens puzzle, on boards from 4×4 up to 10×10. Place one queen per row so that none share a row, column or diagonal. Queens under attack turn red, and you can switch on attack lines to see which squares are covered. A hint places the next queen in a way that keeps the puzzle solvable, or tells you when your current queens can't lead to a solution.

How to play N-Queens

  1. Tap a square to place a queen; tap again to remove it.
  2. No two queens may share a row, column or diagonal.
  3. Queens that are under attack turn red.
  4. Place N queens on an N×N board to win.

Tips and strategy

  • Work row by row from the top.
  • Corners are usually a bad start on an 8×8 board.
  • If you get stuck, step back one row rather than starting again.

N-Queens FAQ

How many solutions are there for 8 queens?

92, or 12 if you count rotations and reflections as the same.

Why can't I pick a 2×2 or 3×3 board?

They have no solution. Every size from 4×4 upward does.

Is N-Queens free to play?

Yes. N-Queens is free in your browser on OFF PLAY, with nothing to download or install.

Find more logic & brain games, browse all free games or check the leaderboards.