How can I place one queen, two bishops, two knights, and two rooks, on a 5×5 chessboard without any of them attacking other pieces?
After placing just queen and rooks, I can't make room for the other four pieces.
Chess Stack Exchange is a question and answer site for serious players and enthusiasts of chess. It only takes a minute to sign up.
Sign up to join this communityHow can I place one queen, two bishops, two knights, and two rooks, on a 5×5 chessboard without any of them attacking other pieces?
After placing just queen and rooks, I can't make room for the other four pieces.
For the sake of completeness, I used chessboard
, a Python "CLI to solve combinatoric chess puzzles".
chessboard solve --length=5 --height=5 --queen=1 --bishop=2 --rook=2 --knight=2
outputs 24 boards, corresponding to 3 unique solutions, rotated or mirrored.
The queen must be on the edge of the board, but it can be anywhere along those edges (16 squares). There are 2 possible solutions if the queen is in the corner or in the middle square along the edge, for a total of 24 solutions.
Here's the output:
┌───┬───┬───┬───┬───┐
│ ♛ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ │ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ ♞ │ │ │ ♝ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ ♛ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♝ │ ♞ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♜ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♞ │ ♝ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ ♛ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♝ │ ♞ │
├───┼───┼───┼───┼───┤
│ ♜ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♞ │ ♝ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♛ │ │ │
├───┼───┼───┼───┼───┤
│ ♜ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ │ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ ♞ │ │ │ ♝ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♛ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♜ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ │ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ ♝ │ │ │ ♞ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ │ ♛ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ ♝ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♜ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ ♝ │ ♞ │ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ │ │ ♛ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ │ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ ♝ │ │ │ ♞ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ │ │ ♛ │
├───┼───┼───┼───┼───┤
│ │ ♞ │ ♝ │ │ │
├───┼───┼───┼───┼───┤
│ ♜ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ ♞ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ ♛ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ │ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ ♞ │ │ │ ♝ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♛ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ │ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ ♝ │ │ │ ♞ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♝ │ ♞ │
├───┼───┼───┼───┼───┤
│ ♛ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♞ │ ♝ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ │ ♞ │ ♝ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ ♛ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♝ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ ♝ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♛ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ ♝ │ ♞ │ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ ♝ │ ♞ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♛ │
├───┼───┼───┼───┼───┤
│ ♞ │ ♝ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ ♞ │ │ │ ♝ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ │ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ ♛ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ ♝ │ │ │ ♞ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ │ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♛ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ │ ♞ │ │ │ ♝ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ │ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ ♛ │ │ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♞ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♜ │
├───┼───┼───┼───┼───┤
│ │ │ ♝ │ ♞ │ │
├───┼───┼───┼───┼───┤
│ ♛ │ │ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ │ ♞ │ ♝ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ ♜ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♝ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ ♛ │ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ ♝ │ │ │ ♞ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ │ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♜ │
├───┼───┼───┼───┼───┤
│ │ │ ♛ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ ♞ │ │ │ ♝ │
├───┼───┼───┼───┼───┤
│ │ ♝ │ │ │ ♞ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ ♜ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♛ │ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ ♝ │ ♞ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♜ │
├───┼───┼───┼───┼───┤
│ ♞ │ ♝ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♛ │ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ │ ♜ │ │ │
├───┼───┼───┼───┼───┤
│ ♝ │ │ │ ♞ │ │
├───┼───┼───┼───┼───┤
│ ♞ │ │ │ ♝ │ │
├───┼───┼───┼───┼───┤
│ │ ♜ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♛ │
└───┴───┴───┴───┴───┘
┌───┬───┬───┬───┬───┐
│ │ ♝ │ ♞ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ ♜ │ │
├───┼───┼───┼───┼───┤
│ ♜ │ │ │ │ │
├───┼───┼───┼───┼───┤
│ │ ♞ │ ♝ │ │ │
├───┼───┼───┼───┼───┤
│ │ │ │ │ ♛ │
└───┴───┴───┴───┴───┘
Generated 12 positions using python-chess. Here are the links from lichess.