Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenharman/tdd-bowling-game
An example of Test-Driven Development using Bowling as the domain.
https://github.com/stevenharman/tdd-bowling-game
Last synced: 11 days ago
JSON representation
An example of Test-Driven Development using Bowling as the domain.
- Host: GitHub
- URL: https://github.com/stevenharman/tdd-bowling-game
- Owner: stevenharman
- License: other
- Created: 2010-06-10T19:22:43.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-06-10T19:23:34.000Z (over 14 years ago)
- Last Synced: 2024-12-25T11:41:50.906Z (20 days ago)
- Language: JavaScript
- Homepage:
- Size: 5.98 MB
- Stars: 8
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# TDD Bowling Game
An example of doing Test-Driven Development using Bowling as the domain.## The game to be played
Below are some scenarios we can use to drive the development of the game.* when rolling all gutter balls, the score is 0.
* when the first frame is a spare and the rest score 2, the score is 48.
* when the first 2 frames are spare and the rest score 2, the score is 56.
* when 10 frames have been bowled, don't allow any more to be bowled.
* when the first frame is a strike and the rest score 2, the score is 50.
* when the first 2 frames are strikes and the rest score 2, the score is 68.
* when rolling a perfect game, the score is 300.
* when rolling alternate strikes and spares, the score is 200.### Thanks
A special thanks to [Ron Jeffries](http://xprogramming.com/articles/miningbowling/)
for the original idea, and [Cory Foy](http://blog.coryfoy.com/2006/08/tdd-bowling-game-part-1/)
for pushing it further.