Hi
A game is played in which a single dice is tossed. If the result is 4 or 6, the player wins. If the result is 1 or 3, the player loses. If the result is 2 or 5, the player continues to roll the dice until a win or a loss occurs. A complete C++ function game() is given below, re-write the function with switch-case statement.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here