I’m not sure if this is mentioned, later on in the module, but I haven’t seen it yet, but one thing would screw it up.
If in a frame a player scored a 0 then a 10, the code would still increase the bowl by 2 but it should be 1.
Here is my code to deal with this.
if (pins == 10)
{
if (bowl % 2 != 0)
{
bowl += 2;
return Action.EndTurn;
}
else if (bowl % 2 == 0)
{
bowl ++;
return Action.EndTurn;
}
}