@ -22,6 +22,9 @@ public class BownlingCalculator {
sum += evaluateFrames(listOfThrows, SPARE, m -> PINS_IN_FRAME//
- Integer.parseInt(m.group(SPARE_FRAME_FIRST_THROW))
+ Integer.parseInt(m.group(SPARE_FRAME_FOLLOWING_THROW)));
sum += evaluateFrames(listOfThrows, "X (\\d)(\\d)", m -> PINS_IN_FRAME//
+ Integer.parseInt(m.group(1))
+ Integer.parseInt(m.group(2)));
return sum;
}