Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CrapsPlay {
- /**
- * The dice used in the game.
- */
- private Die die1, die2;
- private Scanner scan;
- /**
- * Store whether the current game was a win or a loss.
- */
- private boolean won;
- /**
- * Store whether the current game is finished or not.
- */
- private boolean finished = false;
- /**
- * Store the number of rolls in the current game.
- */
- private int rolls;
- /**
- * Store the first roll of the game.
- */
- private int firstRoll;
- /**
- * Sum of the faces of the dice.
- */
- private int sumOfRoll;
- /**
- * Store the total number of won games.
- */
- private int wonGames;
- /**
- * Store the total number of games played.
- */
- private int gamesPlayed;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement