Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Yet Another :: N-Queens Solution

by Elgon (Curate)
on Feb 12, 2003 at 18:32 UTC ( #234787=note: print w/replies, xml ) Need Help??

in reply to Re: Yet Another :: N-Queens Solution
in thread Yet Another :: N-Queens Solution

Thanks Dmitri,

I've added a small bit of extra code to make the written file contain 'X' and 'O' as the queens and empty spaces respectively.

I've tested it up to n=12 now, which takes about 2 1/2 hours on my P120 laptop (Debian with X and enlightenment running.) I wrote it just for fun, as I don't come from a rigorous programming background but am trying to work through some of the things that a CS undergrad would have to do.


"What this book tells me is that goose-stepping morons, such as yourself, should read books instead of burning them."
       - Dr. Jones Snr, Indiana Jones and the Last Crusade

  • Comment on Re: Re: Yet Another :: N-Queens Solution

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://234787]
Discipulus uh the link was for cmd.exe the bash one
[marioroy]: If yes, for redirection to work, one might do the following
[marioroy]: `bash -c "clang --version 2>/dev/null"`
[choroba]: Sane people don't use csh
[marioroy]: the 1>&2 will work, not shown
[marioroy]: sorry, did not know which if cmd.exe or unix (bash)
[choroba]: csh considered harmful
[erix]: no, I'm using bash :)
[marioroy]: :)
[marioroy]: I use the default and happens to be bash

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-03-23 08:24 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (284 votes). Check out past polls.