while ( gameStatus == Status.CONTINUE ) // not WON or LOST { sumOfDice = rollDice(); // roll dice again // determine game status if ( sumOfDice == myPoint ) // win by making point gameStatus = Status.WON; else if ( sumOfDice == SEVEN ) // lose by rolling 7 before point gameStatus = Status.LOST; } // end while // display won or lost message if ( gameStatus == Status.WON ) System.out.println( "Player wins" ); else System.out.println( "Player loses" );