I managed to make every test pass with just adding a little bit to the method that Daryl provided in his code.
private bool TwoStrikesLastFrame () {
return ((bowls[19 - 1] + bowls[20 - 1]) % 10 == 0) && (bowls[20 - 1] > 0);
}
This way the method will only return true if bowls 19 and 20 are divisible by 10 AND bow 20 has more than 0 pins.
I kind of like this way better since it only requires changing one line of code and that way we don’t have two ‘else if’ statements that return Tidy. (Plus if you have more than 3 else if statements it would probably be better to use a switch statement instead.
What do you guys think?