After the first roll, if the game is won or lost, the program skips the body of the while
statement (lines 42–52) because gameStatus
is not equal to CONTINUE
. The program proceeds to the if
...else
statement in lines 55–58, which prints "Player wins"
if gameStatus
is equal to WON
and "Player loses"
if gameStatus
is equal to LOST
.
18.191.168.83