13
$\begingroup$

Inspired by this question. Actually the same but in a more generic manner.

What is the maximum number of chess pieces of the same type (e.g. kings, bishops, rooks, knights) which can be placed on a standard $8\times8$ chess board (or $N\times N$ in generic case), such that each piece attacks (and is attacked by) only one other piece?

Note: For pawns, assume that they are coloured (and move/capture in different directions, just as in chess). (Pawns are allowed to be placed on their home rank, e.g. white on 1st and black on 8th, when using standard board.)

$\endgroup$
1
  • 3
    $\begingroup$ Thanks for the follow up question. I think we should also ask the more interesting version where there are black and white pieces and they need to attack the opposite color. $\endgroup$ Commented Mar 2, 2020 at 23:37

5 Answers 5

12
$\begingroup$

Knights

Here is a symmetric way to place 32
enter image description here

Bishops

Here is a way to place 20 bishops
enter image description here

Pawns

Here is a valid (I think) way to do 56
enter image description here
As pointed out by Steve in the comments, we may want to disallow pawns attacking pawns of the same colour. In this case the best we can do is 48.
enter image description here

I cannot outdo JMP's answers for Kings and Rooks.

$\endgroup$
6
  • $\begingroup$ Cool answer! Is there a non-symmetric version for knights? $\endgroup$ Commented Mar 2, 2020 at 23:51
  • $\begingroup$ "Pawns" seems to be solving a different problem to the others... for the pawns, many of them are "attacked" or "protected" by others of the same colour. For other pieces, they're divided into mutually-attacking pairs, where one of each pair could be switched for a black piece, and after any capture would not be attacking (or attacked by) anything else. $\endgroup$
    – Steve
    Commented Mar 3, 2020 at 14:02
  • $\begingroup$ @Steve yes this is the case but the pawns problem must be different as, if we stick with a single colour, there will always be a pawn not attacking any other pawn. $\endgroup$
    – hexomino
    Commented Mar 3, 2020 at 14:12
  • $\begingroup$ Yes, but the others could be converted to a solution where half the pieces are black... which would still not be the same as the pawns solution, because none of the pieces are "protected" by another piece the same colour (which is the same as "attacked" from the POV of the problem). If gaps are inserted to avoid white or black pawns protecting each other, there's only space for 42 on an otherwise-equivalent layout... $\endgroup$
    – Steve
    Commented Mar 3, 2020 at 14:21
  • $\begingroup$ @Steve Ah, okay I see your point, I can do a bit better than this I think so will edit in this alternative $\endgroup$
    – hexomino
    Commented Mar 3, 2020 at 14:22
10
$\begingroup$

Kings:

26

26kings

Rooks:

10

10rooks

Graphics from lichess

$\endgroup$
7
$\begingroup$

After coming up with many solutions, my roommate and I spent some time on a C++ algorithm to solve this problem. The numbers below are the maximum the algorithm can achieve before it starts taking a very long time to compute. If allowed to complete, all possible solutions will be found.

The program can be viewed online here: https://repl.it/repls/DrearyHardtofindAssignments

We have not implemented the pawn problem since it is a different type of problem than the others.

Knights

$32 \text{ knights}$

knights


Bishops

$20 \text{ bishops}$

bishops


Rooks

$10 \text{ rooks}$

rooks


Kings

$26 \text{ kings}$

kings


Pawns (2 colors)

$56 \text{ pawns}$

pawns

$\endgroup$
4
  • 1
    $\begingroup$ 8 of your knights are attacked by 2 pieces. $\endgroup$
    – JMP
    Commented Mar 2, 2020 at 11:58
  • $\begingroup$ @JMP True. I will see what I can do to fix that. $\endgroup$ Commented Mar 2, 2020 at 11:59
  • 2
    $\begingroup$ Pawns solution not valid $\endgroup$ Commented Mar 2, 2020 at 12:36
  • $\begingroup$ @DanielMathias Changed it $\endgroup$ Commented Mar 2, 2020 at 12:53
7
$\begingroup$

Using "standard chess rules" (like in several answers to the linked problem)

Pawns

Already covered by other answers - 56 are possible, 28 of each colour

All other pieces could use the solutions using colour-agnostic pieces that attack every other piece, as shown in several other answers, but changing one of each pair to black. e.g. 20 bishops and 32 knights (10 of each colour and 16 of each colour respectively)
The remaining solutions below all make use of the fact that same-colour pieces are NOT attacking each other.

Rooks

64 are possible, 32 of each colour
enter image description here

Kings - the answer under standard chess rules would be zero, as a king cannot attack another king... but that's boring, so

if we modify the rules to allow multiple kings, and to allow kings to attack kings of an opposing colour (but kings of the same colour would be "protecting" each other and therefore not attacking), this makes 32 (16 of each colour) easily possible, for example
enter image description here

Knights

With same-colour knights treated as not "attacking" each other, we can place 48 (24 of each colour) as follows:
enter image description here or enter image description here
The left-hand one builds on the known solution for 32 colour-agnostic knights, by arranging the colours in patterns that allow two more similar blocks of 8 to be added. The right-hand one arranges 6 blocks of 8 in a ring around the edge of the board.

Bishops

52 are possible, 26 of each colour.
enter image description here
(this looks a lot less complicated when you isolate only the dark or white squares...)

$\endgroup$
2
  • $\begingroup$ wow that bishops one is amazingly dense! $\endgroup$ Commented Mar 5, 2020 at 6:21
  • $\begingroup$ @DmitryKamenetsky if you squint, bishops kind-of look like rooks rotated 45° :) $\endgroup$
    – Steve
    Commented Mar 5, 2020 at 8:09
2
$\begingroup$

I found non-symmetrical solutions for bishops and knights that obtain the optimal number of pieces:

Bishops

26
enter image description here

Knights

24
enter image description here

Or this

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.