This is an adaption of Uncle Bob's Bowling Game Kata.
- Familiarize with the scoring of bowling.
npm install -g elm elm-test
- Make
elm test
pass by implementingscore
insrc/Game.elm
. - Uncomment the next scoring-test in
tests/GameTests.elm
. - Repeat
Assuming you already installed node.js and npm you have to install elm
and elm-test
:
git clone https://github.com/pierrebeitz/elm-bowling-game.git
cd elm-bowling-game
# install prerequisites. depending on your setup, you may want to use `sudo`.
npm install -g elm elm-test
# run the tests
elm-test
Whenever you have a solution, please do not hesitate to make a PR. It will not be merged but may be an inspiration for the fellow elmish.
You also might want to have a look at my solution by checking out solution1
.