........
Q..B..Q.
........
........
.......Q
........
........
...Q....
Where the bishop lies at the intersection of three queens' horizontal attacks. With these queens, no other bishop placement works.After identifying solutions up to rotation and reflection there are only 49 solutions. No solutions have rotational symmetry, and there is exactly one solution with reflection symmetry (already mentioned by an earlier commenter).
Out of the 49 solution classes, there are 18 distinct queen layouts. The layouts have between 1 and 5 ways to place the bishop to complete the solution. Interestingly, there is exactly one queen layout (up to rotation / reflection) for which there are exactly 2 ways to place the bishop to complete the puzzle.
..N.....
........
........
....Q...
.....Q..
...Q....
......Q.
........
Edit: even more fun facts: if we take the standard piece values of Q=9, R=5, B/N=3, then we can ask for the smallest piece budget that attacks every square. The cheapest possible configuration is 24 points, you can see one with 8 bishops: ........
....B...
....B...
.B......
...B.B..
.....B..
..B.....
....B...
Which has pleasing symmetry when you view it as a composition of light-square bishops and dark-square bishops.That got me down to 6 free spaces.
const solution = {
a8: "b1",
b8: "q1",
f7: "q2",
a4: "q3",
e3: "q4"
};
It would be cool if it randomly selected one of those 388, so you could click repeatedly and develop an intuition for what kinds of distributions were a valid solution.