Logic Puzzle Club

Queens as logic

One queen in every row, every column and every region, and no two queens touching. Four sentences again.

Practice now
Five rows, five columns, five regions, lettered A to E. You will place five queens.
1 of 6

How it works

A Queens board is an n×n grid cut into n colored regions. You place n queens. The rules are short.

Every row has exactly one queen. Every column has exactly one queen. Every region has exactly one queen. No two queens touch, not even at a corner.

The first three are the same “exactly one” sentences as sudoku, with queens in place of digits. The fourth is a “for every pair” sentence: for every two queens, they are not neighbors. That one does most of the work.

Where the n queens come from

The rules never say “place five queens”. They don’t need to. There are five rows, and each has exactly one queen, so there are five queens. Counting follows from the rules.

The same count works for columns and regions. That is why a Queens board always has as many regions as rows.

The touching rule is the strong one

A queen away from the edge rules out its row, its column, its region and eight neighbors. The neighbors are the part people forget, and they are where most deductions come from.

Worth memorizing

  1. One queen per row, per column, per region.

    Three “exactly one” sentences.

  2. No two queens touch, even diagonally.

    A queen rules out all eight neighbors.

  3. n rows means n queens and n regions.

Practice

0 of 5 right
Question 1

Why can’t a queen go on the ringed cell?

Question 2

Why can’t a queen go on the ringed cell?

Question 3

Why can’t a queen go on the ringed cell?

Question 4

How many queens does this board need?

Question 5

How many cells does this one queen rule out?

Where you’ll use this