Package eg.bowling
Class BowlingGame
- java.lang.Object
-
- eg.bowling.BowlingGame
-
-
Constructor Summary
Constructors Constructor Description BowlingGame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
currentBall()
int
currentFrame()
boolean
gameOver()
boolean
isGameOver()
void
roll(int pins)
int
score(int frame)
int
scoreableFrame()
boolean
validGame()
-
-
-
Method Detail
-
currentFrame
public int currentFrame()
- Specified by:
currentFrame
in interfaceBowling
-
currentBall
public int currentBall()
- Specified by:
currentBall
in interfaceBowling
-
scoreableFrame
public int scoreableFrame()
- Specified by:
scoreableFrame
in interfaceBowling
-
isGameOver
public boolean isGameOver()
- Specified by:
isGameOver
in interfaceBowling
-
-