Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 8 Queens Problem
Date: Mon, 5 Apr 2010 00:16:05 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 13
Message-ID: <hpba45$9e0$1@fred.mathworks.com>
References: <hpar29$q7p$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1270426565 9664 172.30.248.35 (5 Apr 2010 00:16:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Apr 2010 00:16:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:623426

"Shaun " <shaunvon@iastate.edu> wrote in message <hpar29$q7p$1@fred.mathworks.com>...
> My first question:
> I need to create a function that "kills" like a queen.  The board is an 8x8 of ones.  The directions in which the queen can kills should all turn to zeroes.  A number 3 should be used to depict where the queen is placed.  The inputs should be row and column.  And the output should be the changed board.  I can't seem to figure out how to do this.  
> 
> My second question:
> I am then supposed to create a program which uses the queen function that prints out all the ways 8 queens can be placed on the board such that none of the queens is in the kill zone of another queen.  The program should also display how many solutions it found. (There are 96 solutions, total.)  The program should not take any user input.  It just needs to be a regular script file. 
> 
> If anybody could help out with this I would greatly appreciate it.  Thanks!

But rather than giving up and asking us to do it
for you, you will gain far more by trying again.

It is possible. So try again.