This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: } } } 4. The main thing you have to do is to add a new accessor method to CrapsGame called getGameInProgress() that returns the value of gameInProgress . 5. Compile and test. 6. You can modify the CrapsGame method beginGame() so it prints “*** New Game ***” at the beginning of a game. 7. Organize your rolling-dice project so it looks something like this: 8. Modify the run() method so that if the user types in the word “a”, the game is aborted. That is, the method would stop immediately with a message to the effect that the game was aborted. See example run below. String equality is testing the following way, not with ==, if(anyInput.equals("a")) 9. Put your name and date as a comment at the top of each class file. 10. Turn in a print out of all four class files....
View Full Document
This lab report was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.
- Fall '07