Any more info on this code?
I'm stuck on trying to understand what it's doing. First, I don't see an array for the board (or so), and the 2 to 16 arrays are weird. It says "diagonals", but diagonals on a chessboard are just 8 squares long, so I'm thinking it's really two diagonals (which would be 15 squares)??
Then, in main(), it sets all the array elements to TRUE, but mentions that TRUE indicates the element has a queen??
The "coup de grace" is the array with negative and positive indeces, of course!
How much can you change these arrays and logic, and be OK?
This IS the put 8 queens on the chessboard without attacking any of the other queens, RIGHT?
I believe we've all been there, at some time or other.Quote:
sometimes i need someone to tick me off and then i will react