Name: Berek 2010-07-01 7:48
How do I make this work in java?
Die1 = Random number 1-6
Die2 = Random number 1-6
Die3 = Random number 1-4
If Die1 = 6 AND Die2 = 6
then subtract (Die3 + 6) from 20 then send to field "x"
if Die1 = 1 AND Die2 = 1
then send 18 to field "x"
if Die1 > Die2
then subtract Die1 from 20 then send to field "x"
if Die1 < Die2
then subtract Die2 from 20 then send to field "x"
Die1 = Random number 1-6
Die2 = Random number 1-6
Die3 = Random number 1-4
If Die1 = 6 AND Die2 = 6
then subtract (Die3 + 6) from 20 then send to field "x"
if Die1 = 1 AND Die2 = 1
then send 18 to field "x"
if Die1 > Die2
then subtract Die1 from 20 then send to field "x"
if Die1 < Die2
then subtract Die2 from 20 then send to field "x"