Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

8 Queens problem; need help starting it. Should I just create one 8x8 object array and make the queens claim their spots. Or should I make 8 columns with a queen each and have them... well lets just say that I need a push in the right direction.

OpenStudy (anonymous):

Oh yeah this is for C#. But I dont think it matters.

OpenStudy (anonymous):

well I guess you are refering to the game 8 queens and want to do this programically so I would probably make a logic table of some time in binary to figure out how to do this then translate that logic table into human readable code using if statements where each bit is a condition to the if statement. This is pretty complex though so I give my solution a 50% chance of success if you want to try this technique which is successful on a much smaller scale in FLASH AS 3.0 I put example here but its incomplete and just meant for vizualization purposes. "I don't know what I'm doing all I know is I don't wanna stop"complete quote ? --Ozzy Osbourn //first attempt? 0001 //row1 0010 // row2 0100 // row3 1000 // row 4 //second attempt 00000001//row0 00000010//row1 00000100//row2 00001000//row3 00010000//row4 00100000//row5 01000000//row6 10000000//row7 //repeat second attempt 10000000//row0 01000000//row1 00100000//row2 00010000//row3 00001000//row4 00000100//row5 00000010//row6 00000001//row7 //is third attempt needed ? //gonna make me start IDE but then again maybe not my gut is telling me this will work without too much trouble. I don't know how many times you need to repeat second attemp to find solution but I would make each peace move to each "attempt" and do a hit test in flash and just brute force the solution by changing the logic table/if statements untill you find a table with the solution. Time consuming I know but the math eludes me and you will learn somethig about binary logic along the way. :( take all of this with a grain of salt I'm a self proclaimed/trained errrr projected geek?

OpenStudy (anonymous):

not done C# yet

OpenStudy (anonymous):

what u using C# to do?

OpenStudy (anonymous):

i have to create this program in c#

OpenStudy (anonymous):

what IDE do you use?

OpenStudy (anonymous):

MS Visual C# 2008 express

OpenStudy (anonymous):

hmmmm ok thats good enough i guess I prefer sharpdevelop an OpenSource IDE

OpenStudy (anonymous):

but oh well

OpenStudy (anonymous):

u need graphical interface?

OpenStudy (anonymous):

naw i'm just using a console for this program

OpenStudy (anonymous):

how will you prove your results?

OpenStudy (anonymous):

i have to; i need to display the 12 unique results

OpenStudy (anonymous):

dam misread i've been up too long. yes i do have to prove them, by displaying them.

OpenStudy (anonymous):

why C#

OpenStudy (anonymous):

its mostly a web language

OpenStudy (anonymous):

its the class i am taking. dont know why they choose this language. its a beginners course. they should have used python, ruby or something like those

OpenStudy (anonymous):

hmmm ok

OpenStudy (anonymous):

so u have graphics built already?

OpenStudy (anonymous):

dont need them, its going to be a console program

OpenStudy (anonymous):

yeah I don't know how to do that

OpenStudy (anonymous):

i guess somebody else will have to help

OpenStudy (anonymous):

if only it were a DOS program :)

OpenStudy (anonymous):

its kool i think i finally got it.

OpenStudy (anonymous):

ok then

OpenStudy (anonymous):

thanks for spending a small portion of your life with my nonsense 1/2

OpenStudy (anonymous):

its all good, i needed a lil distraction. have a good nite, its back to work for me.

OpenStudy (anonymous):

gary you don't need to use C# to write pseudo code or explain algorhitms....

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!