Simulating Game of Craps in JAVA

do {
} while(scorenew!=point || scorenew != 7);

This condition is always true, so you have an infinite loop. Also, why do you pass d1 and d2 into the roll() function? They are completely unused and unneeded.

Leave a Comment