|
Post by R on Nov 25, 2001 12:09:35 GMT -5
o o o o o o
|
|
BeL
Junior Member
all those proofs ... are making my eyes go blind...
Posts: 21
|
Post by BeL on Nov 25, 2001 12:50:45 GMT -5
4x2 is oo oo oo oo and 3x3 is ooo ooo ooo right?
|
|
|
Post by Sky on Nov 25, 2001 15:28:30 GMT -5
Just wanna ask what are these 4x2 or 3x3 are doing ...i done the program ;D and never used anything like that anywhere in my program...i suggest anyone here to keep things simple P.S. i know there is many different ways of doing it but just think those are not necessary
|
|
|
Post by Majin_Blues on Nov 25, 2001 16:36:11 GMT -5
it's going to be a square grid...
so you have to make your program so that if you change one line/variable, it'll change the size of the entire grid/playing field without any problems
|
|
|
Post by Sky on Nov 25, 2001 17:09:25 GMT -5
i know that already la...my program works for any size from 4 to anything by only changing one line...you're right Blues...it's going to be a square grid...so why 4x2? anyway...maybe i did it very different from everybody la ;D
|
|
|
Post by gundamf91 on Nov 25, 2001 20:00:45 GMT -5
maybe he's just wondering what the first number means and what the second number means? always Row then Column so 4x2 would be 4 rows and 2 columns as Bel posted and hmm..sky chill
|
|
|
Post by R on Nov 25, 2001 22:44:55 GMT -5
I think I had put my words wrong.
the assignment asked u for lines of 4 and 3 and 3 and 2 bones it is possib;e that your bones come out this way :
o o o o <--4 bones horzontial o o o o <--3 bones hor o o o o<--3 bones hor ^ 2 bones vertical
this satisfys the question... but if the T.A sees it, he might think its wrong
|
|
|
Post by R on Nov 25, 2001 22:48:10 GMT -5
for the slow thinkers (people like me ;D)
o o o o x x x v k k k v
|
|
|
Post by R on Nov 25, 2001 22:49:39 GMT -5
I think this is also illegal
o o o o o <--4 hor o ^ 3 vert.
|
|
|
Post by R on Nov 25, 2001 22:52:22 GMT -5
anyway...maybe i did it very different from everybody la hahaha, u chinese?
|
|
|
Post by Sky on Nov 25, 2001 23:49:38 GMT -5
well...that's interesting 3x4 but i am not going to do anything about that i think the chance of this happening is extremely low ;D ;D More importantly, if the TA can count correctly(and given that u did your program correctly)...the TA will notice that there are exactly 12 bones buried...which implies not overlapping or i think u can use differ letter to show differ line as u did here but i think u don't have to since the TA is not going to run the program once (i hope) and they can always look at your code when they see anything wrong the handout doesn't say we are suppose to tell the user which line is which...so it's not our problem that the TAs are too stupid... and of course o o o o o o is illegal la
|
|
|
Post by Majin_Blues on Nov 26, 2001 6:51:23 GMT -5
i agree with sky...
no overlapping bones = totally legitimate game
they said so on the site...
|
|
|
Post by Brutal_Chicken on Nov 26, 2001 7:50:12 GMT -5
I managed to get my bone burying method to work but for some strange-ass reason sometimes not all of the bones appear. Has anyone else encountered this and could someone provide a general reason why? Also, they don't care if sometimes something like 4444333 happens on one row would they?
|
|
|
Post by Observer on Nov 26, 2001 7:54:53 GMT -5
If all the bones don't appear there must be some errors in your bone burying method. Perhaps you didn't loop the if statment that says only to place bones if there's already bones in that place or something like that.
|
|
|
Post by Brutal_Chicken on Nov 26, 2001 8:08:52 GMT -5
Actually, I have several 'checks' so that none overlap. The thing is if I screwed up somewhere there it'll take a long time to debug it so to speak.
On average of 20 trials, 75% were ok.
|
|