🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4243

Re: a beginer want to know ......

#4243
From: Scott Edward Taylor
Date: Sat, 21 Oct 1995 00:00
32 lines
2277 bytes
zhuhail@vax.sbu.ac.uk wrote:
: I just want to know how difficult following problem is:
: put 8 queens in the chess board without attach each orther.
: How many solutions it may have.

I suspect that you're doing this as part of a school assignment.
I had to solve the same problem myself when I took an introductory
level computer science course many years ago.  At any rate, there's
no great mystery, once you get past the mental block of worrying
about how to write a chess program, which is quite different from
what you have to do here.  Basically, the solution consists of
figuring out an elegant way of determining whether two queens
intersect, and then simply finding the answer by a brute-force
method of placing a queen, placing another queen, backing up when
you're not able to place yet another queen, and so on until all
eight queens are successfully placed.  Many possible solutions will,
of course, map to each other, but I'm not sure how many truly
unique classes of solutions exist.  Hope this helps!


-------------------------------------------------------------------------
|  Scott Taylor (staylor@netcom.com)  |  What kind of an idea are you?  |
|  CI$: 70662,1777   AOL: STaylor758  ----------------------------------|
|  WWW URL: ftp://ftp.netcom.com/pub/st/staylor/homepage.html           |
-------------------------------------------------------------------------

-- 
-------------------------------------------------------------------------
|  Scott Taylor (staylor@netcom.com)  |  What kind of an idea are you?  |
|  CI$: 70662,1777   AOL: STaylor758  ----------------------------------|
|  WWW URL: ftp://ftp.netcom.com/pub/st/staylor/homepage.html           |
-------------------------------------------------------------------------
Technical Details
Message-ID: <staylorDGt3tp.7zE@netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <1995Oct17.194728.1@vax.sbu.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,57b3ee363d233a99
X-Google-Attributes: gid10d71d,public
From: staylor@netcom.com (Scott Edward Taylor)
Subject: Re: a beginer want to know ......
Date: 1995/10/21
Message-ID: <staylorDGt3tp.7zE@netcom.com>
X-Deja-AN: 117898371
sender: staylor@netcom10.netcom.com
references: <1995Oct17.194728.1@vax.sbu.ac.uk>
organization: NETCOM On-line Communication Services (408 261-4700 guest)
newsgroups: gnu.chess