Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LI Qi
Bowling
Commits
ae998606
Commit
ae998606
authored
Feb 12, 2016
by
LI Qi
Browse files
provide information for a frame
parent
8ecfd170
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/game/Set.java
View file @
ae998606
...
...
@@ -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
));
tableToEnter
.
enterPoint
(
point
);
updatePlayerIndex
();
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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment