in reply to Trying to solve N-Queens
In other words the queen in the middle can only have other queens at the locations indicated by '?' (or further away). No queen can possibly be at any of the X locations. Adjust the "circle" of knight hops as is appropriate for the actual amount of the board available given the current queen position.
| x | ? | x | ? | x |
| ? | x | x | x | ? |
| x | x | Q | x | x |
| ? | x | x | x | ? |
| x | ? | x | ? | x |
--- demerphq
my friends call me, usually because I'm late....
|
|---|