You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/bowling/.docs/instructions.md
+26-31Lines changed: 26 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,30 @@
2
2
3
3
Score a bowling game.
4
4
5
-
Bowling is a game where players roll a heavy ball to knock down pins
6
-
arranged in a triangle. Write code to keep track of the score
7
-
of a game of bowling.
5
+
Bowling is a game where players roll a heavy ball to knock down pins arranged in a triangle.
6
+
Write code to keep track of the score of a game of bowling.
8
7
9
8
## Scoring Bowling
10
9
11
-
The game consists of 10 frames. A frame is composed of one or two ball
12
-
throws with 10 pins standing at frame initialization. There are three
13
-
cases for the tabulation of a frame.
10
+
The game consists of 10 frames.
11
+
A frame is composed of one or two ball throws with 10 pins standing at frame initialization.
12
+
There are three cases for the tabulation of a frame.
14
13
15
-
* An open frame is where a score of less than 10 is recorded for the
16
-
frame. In this case the score for the frame is the number of pins
17
-
knocked down.
14
+
- An open frame is where a score of less than 10 is recorded for the frame.
15
+
In this case the score for the frame is the number of pins knocked down.
18
16
19
-
* A spare is where all ten pins are knocked down by the second
20
-
throw. The total value of a spare is 10 plus the number of pins
21
-
knocked down in their next throw.
17
+
- A spare is where all ten pins are knocked down by the second throw.
18
+
The total value of a spare is 10 plus the number of pins knocked down in their next throw.
22
19
23
-
* A strike is where all ten pins are knocked down by the first
24
-
throw. The total value of a strike is 10 plus the number of pins
25
-
knocked down in the next two throws. If a strike is immediately
26
-
followed by a second strike, then the value of the first strike
27
-
cannot be determined until the ball is thrown one more time.
20
+
- A strike is where all ten pins are knocked down by the first throw.
21
+
The total value of a strike is 10 plus the number of pins knocked down in the next two throws.
22
+
If a strike is immediately followed by a second strike, then the value of the first strike cannot be determined until the ball is thrown one more time.
0 commit comments