code in java Given the values of three dice, return true if you win the game and false if you lose. You lose if the sum
Posted: Sat May 14, 2022 4:02 pm
code in java
Given the values of three dice, return true if you win the game
and false if you lose. You lose if the sum of both dice is 4 or 6
or if all three of the dice are the same. The value of the dice can
be 1 through 6.
getWin3(1, 1, 1) → false
getWin3(1, 2, 1) → true
getWin3(3, 1, 3) → false
Given the values of three dice, return true if you win the game
and false if you lose. You lose if the sum of both dice is 4 or 6
or if all three of the dice are the same. The value of the dice can
be 1 through 6.
getWin3(1, 1, 1) → false
getWin3(1, 2, 1) → true
getWin3(3, 1, 3) → false