Skip to content

Commit 233d0d0

Browse files
Merge pull request #9 from Kpler/feat/molkky
feat(molkky): add molkky kata
2 parents 3f98825 + f077cdf commit 233d0d0

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/molkky_game/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Introduction
2+
Molkky is a throwing game similar to bowling, where objective is to knock down wooden pins by throwing a wooden stick at them.
3+
4+
# Kata rules
5+
6+
## Setup
7+
There are twelve pins marked from 1 to 12
8+
9+
## Scoring
10+
11+
- Knocking down a pin scores the number of points marked on the pin. If you knock down pin #4, you score 4 points.
12+
- Knocking down several pins scores the number of pins knocked down. If you knock down pins #3, #5 and #8, you score 3 points.
13+
- Scoring above 50 points reduces the score to 25 points. If you have 47 points and score 5 points, you have 25 points.
14+
- Each pin number is unique, you cannot knock down the same pin twice in the same turn.
15+
- At the beginning of a turn, all pins knocked down in the previous turn are reset and are standing again.
16+
17+
## Winning
18+
Game is won when 50 points exactly are reached.
19+
20+
## Losing
21+
Game is lost if no pins are knocked down after three turns.
22+
23+
## Additional rules
24+
- This kata focuses on scoring of 1 single player.
25+
- When a game is won or lost, continuing the game is not possible.

src/molkky_game/__init__.py

Whitespace-only changes.

tests/molkky_game/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)