Forum Discussion
Solving the Eight Queens Chess Problem with a Lambda
- Jul 13, 2023
Patrick2788 I think i dun it ... see attached
EDIT: I updated the function to take advantage of the fact that the 2nd 1/2 of the solutions are symmetric to the first 1/2 (I didn't optimize for the 1/2 of the middle value when n is odd) but now instead of crashing at n=12 it finds all the solutions for n=12 (14,200). i also updated the sheet format to make entry and viewing a little easier.
EDIT2: I fixed the above version and added better format and added the checkerboard output with a pulldown selector to pick which solution to show on the board:
BTW: I just tried 13 and it found 73,712 solutions and 14 found 365,596 solutions. Can you please verify them for me?
Patrick2788 I think i dun it ... see attached
EDIT: I updated the function to take advantage of the fact that the 2nd 1/2 of the solutions are symmetric to the first 1/2 (I didn't optimize for the 1/2 of the middle value when n is odd) but now instead of crashing at n=12 it finds all the solutions for n=12 (14,200). i also updated the sheet format to make entry and viewing a little easier.
EDIT2: I fixed the above version and added better format and added the checkerboard output with a pulldown selector to pick which solution to show on the board:
BTW: I just tried 13 and it found 73,712 solutions and 14 found 365,596 solutions. Can you please verify them for me?
At first glance it looks good. I had a list of all 92 solutions but cannot locate it at the moment to check against your results. I recall one thing all 92 solutions had in common was a standard deviation of 2.44949 (rounded) (Although, there are some combinations that are not solutions that have the same STDEV). Your solutions have that same STDEV. I'll try to find that list. I had moved on from this project and don't want to check these 1-by-1!