Commit ae998606 authored by LI Qi's avatar LI Qi
Browse files

provide information for a frame

parent 8ecfd170
......@@ -17,11 +17,16 @@ public class Set {
public void enterPoint(int point) {
public String enterPoint(int point) throws Exception {
ScoreTable tableToEnter = tables.get(players.get(currentPlayerIndex));
Frame current = tableToEnter.getCurrentFrame();
if (current.isStrike()) return "You made a Strike!";
else if (current.isSpare()) return "You made a Spare!";
else return null;
public Player getNextPlayer() {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment