How many squares does a queen attack?
A queen stands alone on an 8 by 8 chessboard.
- How many squares does she attack from one of the four central squares (d4, e4, d5, e5)?
- How many from a corner?
- Which squares give the fewest, and why does the total differ by position?
Show a hint
Count the row, the column and the two diagonals separately, not including the queen's own square.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Four queens on a four-by-four boardThe fewest queens that guard the whole boardHow many rectangles are on a chessboard?Two rooks that do not attack each other100 prisoners and the light bulb
All questions →