Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bowling
- class Game
- {
- public Game(rolls)
- {
- frameSequence = new FrameSequence(NUMBER_OF_ROLLS_IN_A_GAME)
- frameSequence.populateWith(rolls)
- }
- public score(){ frameSequence.score() }
- private frameSequence
- private static final NUMBER_OF_ROLLS_IN_A_GAME = 10
- }
Add Comment
Please, Sign In to add comment