Commits

Christoph Schindler  committed 50fc441

pair 8

  • Participants
  • Parent commits 3fa6bd6
  • Branches dojo-2012-10-21

Comments (0)

Files changed (2)

File BowlingWithAVengeance/bowling.py

             next_frame = frames[index+1]
             if is_strike(frame):
                 score += frame_score(next_frame)
+                if is_strike(next_frame):
+                    score = 25
     return score

File BowlingWithAVengeance/test.py

     assert_equal(bowling.get_score(((3,5), (4,5))), 17)
     
 def test_get_score_3():
-    assert_equal(bowling.get_score(((10,), (3,5))), 26)
+    assert_equal(bowling.get_score(((10,), (3,5))), 26)
+    
+def test_get_score_4():
+    assert_equal(bowling.get_score(((10,), (10,), (5,4))), 25+19+9)