Note:   You must have three classes in your project:
| Instance Variable | Meaning |
|---|---|
| minBet | Minimum allowable bet. |
| maxBet | Maximum allowable bet. |
| bet | Amount of bet on current play. |
| amount | Amount currently held available to bet. |
| die1 | Reference variable to Die object. |
| die2 | Reference variable to Die object. |
| firstRoll | Sum of dice on first roll of play. |
| win | Boolean variable indicating if previous play was a win. |
| rolls | Space delimited string containing the rolls that have occurred in the current play. |
Constructor for the Craps class. Set minBet and maxBet to theMinBet and theMaxBet, respectively.
Accessor method for the minBet instance variable.
Accessor method for the maxBet instance variable.
Accessor method for the bet instance variable.
Mutator method for the bet instance variable. If the specified amount is between minBet and maxBet (inclusive), set bet to theBet. Otherwise, do not change bet. Deduct the amount of the bet from amount.
Accessor method for the amount instance variable.
Mutator method for the amount instance variable. If the specified amount is nonnegative, set amount to theAmount. If the specified amount is negative, do not change the amount.
Return the value of win.
Complete a turn according to the Rules of Craps listed above. Update amount based on the amount of the bet and whether the turn wins or loses. Also record each of sum or each roll in the roll array. Here is some suggested pseudocode for the play method.
Print the values of the rolls of the previous turns from the saved values in rollArray.
Optional 5 points extra credit: write a toString method for the Craps class that you think makes sense.