cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Lounge
N-Queens & Other Stuff
N-Queens & Other Stuff
Nov 11, 2014 at 5:47pm UTC
Duthomhas
(13212)
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
Nov 17, 2014 at 9:56pm UTC
Nov 17, 2014 at 9:56pm UTC
Duthomhas
(13212)
LOL. The joys of updating... Fedora 19 to 21. Doing that now.
Topic archived. No new replies allowed.