diff --git a/README.md b/README.md index 466c5df..c77a9d4 100644 --- a/README.md +++ b/README.md @@ -19,17 +19,23 @@ and then checkout the next tag. Here is the list of tags: v0.1 - Initial checkin - all gutter balls -v0.2 +v0.2 - all static rolls 1 -v0.3 +v0.3 - all static rolls 2 -v0.4 +v0.4 - all static rolls 3 -v0.5 +v0.5 - single spare roll -v0.6 +v0.6 - 9 spare rolls -v1.0 - Game rules fully implemented +v0.7 - all spare rolls + +v0.8 - one strike + +v0.9 - nine strikes + +v1.0 - all strikes With these tests in place you don't even need to know how to score bowling. In case you're interested, here are the rules and an example: diff --git a/game_test.rb b/game_test.rb index 83850d8..ba2fc8e 100644 --- a/game_test.rb +++ b/game_test.rb @@ -104,4 +104,13 @@ def test_nine_strikes assert_equal(240, @game.score, "9 strikes, 2 gutter balls wrong") end + def test_all_strikes + (1..10).each do + @game.add_roll(10) + end + @game.add_roll(10) + @game.add_roll(10) + + assert_equal(300, @game.score, "9 strikes, 2 gutter balls wrong") + end end