Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ioleo/code-kata-dice-game-simulator
Dice game simulator code kata is Scala.
https://github.com/ioleo/code-kata-dice-game-simulator
code-kata
Last synced: 3 days ago
JSON representation
Dice game simulator code kata is Scala.
- Host: GitHub
- URL: https://github.com/ioleo/code-kata-dice-game-simulator
- Owner: ioleo
- Created: 2017-02-03T10:40:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T09:13:28.000Z (almost 8 years ago)
- Last Synced: 2024-11-10T22:42:44.482Z (2 months ago)
- Topics: code-kata
- Language: Scala
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# code-kata-dice-game-simulator
Write a dice simulator. The game is played by P players (at least two) and takes R rounds (at least one).
Each round each player rolls D 6-sided dices (at least one) and sums the results. Each round players
totals are compared and gain scores. Loosers gain 0 points. If there is a solo winner, he gets 2 points.
If there is a draw among the winners, each gets 1 point.```
val p: Int = 2
val r: Int = 4
val d: Int = 3
```Which represents following information:
* number of players - 2
* number of rounds - 4
* number of dices - 3> Note: the solution should take form of an interactive console application. User should be asked to provide
> the simulation parameters.As a result, the game progress should be printed to console, with detailed information about each players rolls
in each rounds, so the winner can be manually confirmed.