This is a slightly reduced version of the well-known problem of placing 8 queens on a chessboard so that they don’t attack each other.
Generated by ChatGPT after several failed attempts
Why 7 queens and not 8? Because my laptop can’t easily handle 8⁸ = 16,777,216 ce...