View Single Post
Old May 6th, 2008, 11:49 PM   #11
cribbageman2500
Newbie
 
Join Date: Apr 2008
Posts: 8
Rep Power: 0 cribbageman2500 is on a distinguished road
Re: New to programming and in over my head!

Sorry about the long delay in my response. Long story short Im now working on it in Java using the net beans IDE Freaky Chris suggested, thank you for that by the way.

As far as the basic logic for the program I was thinking:
Variables:
dice=
thresh=
again=
gen=0
tally=0

num1 = (Math.Random()*10) + 1; add one to gen
if num1 >= again add one to dice and one to tally
else
if num1 >= thresh add one to tally
else
if num1 <= thresh ignore
until
gen=dice
display tally

and thats that, I think that that basic flow of logic should work, its just a matter of putting it all into real code. If you notice any huge errors in my logic please let me know.

Thank you,
Cribbageman
cribbageman2500 is offline   Reply With Quote