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.
Oh yeah this is for C#. But I dont think it matters.
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?
not done C# yet
what u using C# to do?
i have to create this program in c#
what IDE do you use?
MS Visual C# 2008 express
hmmmm ok thats good enough i guess I prefer sharpdevelop an OpenSource IDE
but oh well
u need graphical interface?
naw i'm just using a console for this program
how will you prove your results?
i have to; i need to display the 12 unique results
dam misread i've been up too long. yes i do have to prove them, by displaying them.
why C#
its mostly a web language
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
hmmm ok
so u have graphics built already?
dont need them, its going to be a console program
yeah I don't know how to do that
i guess somebody else will have to help
if only it were a DOS program :)
its kool i think i finally got it.
ok then
thanks for spending a small portion of your life with my nonsense 1/2
its all good, i needed a lil distraction. have a good nite, its back to work for me.
gary you don't need to use C# to write pseudo code or explain algorhitms....
Join our real-time social learning platform and learn together with your friends!