From: "John D'Errico" <>
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$>
References: <hpar29$q7p$>
Reply-To: "John D'Errico" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1270426565 9664 (5 Apr 2010 00:16:05 GMT)
NNTP-Posting-Date: Mon, 5 Apr 2010 00:16:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: comp.soft-sys.matlab:623426

"Shaun " <> wrote in message <hpar29$q7p$>...
> 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.