N-Queens

You complete N-Queens when all required queens are on the board and every pair is nonattacking in all three line types. The full N-Queens position determines the outcome; visual shortcuts never replace the documented N-Queens terminal rule.

Loading game

Stats on this device

Your unfinished game is saved only in this browser.

Played
0
Wins
0
Win rate
Fastest win
Fewest moves
Best score
Current streak
0 days
Best streak
0 days

How to play

You complete N-Queens when all required queens are on the board and every pair is nonattacking in all three line types. The full N-Queens position determines the outcome; visual shortcuts never replace the documented N-Queens terminal rule.

  • N-Queens begins with an empty board and exactly one queen token allocated for each row of the profile's fixed size. The N-Queens deal identity and N-Queens placement rules v1 are stored together. Restarting N-Queens reproduces this opening exactly.
  • During N-Queens, you place a queen on an empty square, move or remove a placed queen, and receive conflict markers for shared rows, columns, or diagonals. The N-Queens engine rejects profile violations, unavailable material, and every action attempted after N-Queens reaches a terminal result.
  • You complete N-Queens when all required queens are on the board and every pair is nonattacking in all three line types. The full N-Queens position determines the outcome; visual shortcuts never replace the documented N-Queens terminal rule.

Strategy tips

  • A reliable N-Queens plan is to place one queen per row, track used columns and diagonal indices, and backtrack immediately when a remaining row has no legal column. A N-Queens hint is legal and deterministic. The next N-Queens hint exposes one bounded action; it never claims a forced N-Queens win.
  • A costly N-Queens mistake is to check only visible straight lines; queens on coordinates with equal row-minus-column or row-plus-column values share a diagonal. Undo supports studying that N-Queens decision, while restart preserves the original seeded N-Queens opening.
  • In the N-Queens endgame, resolve the most constrained remaining row and swap an earlier queen when its column blocks every conflict-free completion. Check every remaining N-Queens action before committing because its terminal rule is enforced immediately.

Complete guide

Rules, scoring, and strategy

N-Queens uses the independently implemented N-Queens placement rules v1 profile (R378). N-Queens is a complete deterministic browser game built around placing the complete fixed set of queens so no two share a row, column, or either diagonal on the puzzle board.

Setup and opening position

N-Queens begins with an empty board and exactly one queen token allocated for each row of the profile's fixed size. The N-Queens deal identity and N-Queens placement rules v1 are stored together. Restarting N-Queens reproduces this opening exactly.

Legal moves and game flow

During N-Queens, you place a queen on an empty square, move or remove a placed queen, and receive conflict markers for shared rows, columns, or diagonals. The N-Queens engine rejects profile violations, unavailable material, and every action attempted after N-Queens reaches a terminal result.

Winning and terminal positions

You complete N-Queens when all required queens are on the board and every pair is nonattacking in all three line types. The full N-Queens position determines the outcome; visual shortcuts never replace the documented N-Queens terminal rule. In the N-Queens endgame, resolve the most constrained remaining row and swap an earlier queen when its column blocks every conflict-free completion. Check every remaining N-Queens action before committing because its terminal rule is enforced immediately.

Practical strategy

A reliable N-Queens plan is to place one queen per row, track used columns and diagonal indices, and backtrack immediately when a remaining row has no legal column. A N-Queens hint is legal and deterministic. The next N-Queens hint exposes one bounded action; it never claims a forced N-Queens win. A costly N-Queens mistake is to check only visible straight lines; queens on coordinates with equal row-minus-column or row-plus-column values share a diagonal. Undo supports studying that N-Queens decision, while restart preserves the original seeded N-Queens opening.

Questions players ask

What makes N-Queens a separate game?

N-Queens uses placing the complete fixed set of queens so no two share a row, column, or either diagonal on the puzzle board. That rule belongs to the N-Queens engine and storage identity rather than a cosmetic preset.

Which edge rule matters most in N-Queens?

A complete solution has exactly one queen in each row and column, with both diagonal index sets also unique.

How is a N-Queens position reproduced?

N-Queens records its game ID, rules version, and seeded deal identity. Those N-Queens values recreate the same opening without a server request.