Computer Science Canada Dice program |
Author: | Leafs Fan [ Thu May 29, 2003 5:59 pm ] | ||
Post subject: | Dice program | ||
i have been doing this program for my comp sci class.. and i can not figure why it does not work. bascially all you do is roll three, random numbers and then you decide if its a winner,loser or if you get points. (you can only have one catergorie that u get. e.g. u can win and get points) win= 4-5-6 or 3 of a kind or a pair and a six, mean you win lose= 1-2-3, pair and 1 point= pair and a 2,3,4,5, the number between 2-5 is the point value i.e. 4,5,6 wins, 1,5,5 loses, 3,6,6 get 3 points now you have to continue to roll three dice until the total of all the wins, poitns and loses is 1000. but for some reason i got like 1000 points, i have tried to fix for a while so some help would be appreicated
|
Author: | Andy [ Thu May 29, 2003 6:36 pm ] | ||
Post subject: | |||
dude man, ur making this way too hard
|
Author: | Homer_simpson [ Thu May 29, 2003 7:48 pm ] |
Post subject: | |
he aint making it hard... he's making it llook kool... it's like the difference betweeen gta 2 and gta 3 3D vs 2D |
Author: | Andy [ Thu May 29, 2003 8:00 pm ] |
Post subject: | |
there are still alot of useless lines tho and what good is it if it doesn't work? i'd rather have a working copy of GTA2 than a non-working copy of GTA3 and GTA2 is good man, what are u talking about... |
Author: | Dark Mist [ Thu May 29, 2003 8:10 pm ] |
Post subject: | |
u need to put a count in the main program that is till 1000 |
Author: | Dark Mist [ Thu May 29, 2003 8:13 pm ] |
Post subject: | |
it sort of works when u say points + loses + wins > 1000 |
Author: | Dark Mist [ Thu May 29, 2003 8:34 pm ] |
Post subject: | |
but again i am not sure |
Author: | Andy [ Thu May 29, 2003 8:42 pm ] |
Post subject: | |
dude, you know u can edit ur messages, instead of spamming other ppl's forums, just click edit on ur message |
Author: | Dark Mist [ Thu May 29, 2003 9:32 pm ] |
Post subject: | |
will remeber that next time |
Author: | tum_twish [ Fri May 30, 2003 10:28 am ] |
Post subject: | |
try putting 'randomize' at the beginning of the main program |
Author: | ThunderChuncky [ Fri May 30, 2003 2:18 pm ] | ||
Post subject: | |||
Here's the program I used.
|
Author: | vexd [ Mon Nov 10, 2003 6:41 pm ] |
Post subject: | |
HOLLY SHIT! U GOTO MY SCHOOL DONT U? IM DOING THAT TODAY IN SCHOOL! also for the others: the assignment was to make a class out of this and O m G, dis is gunna save /\/\E HELL-A TiME! luv compsci.ca ![]() |