N-Queens & Other Stuff

I don't peruse RosettaCode much, but since it was referenced in a recent thread I looked at the solution there ...and was appalled.

So I rewrote it.
http://rosettacode.org/wiki/N-queens_problem#C.2B.2B

(Now to see how long it lasts unmolested.)

My solution isn't actually much longer than the crap below it, only it has a lot more commentary and whitespace. The solver itself is shorter. (And doesn't just throw random queens at the chessboard.)

Hope you enjoy.
Last edited on
LOL. The joys of updating... Fedora 19 to 21. Doing that now.
Topic archived. No new replies allowed.