klapstoelpiloot / pandemic

Pandemic Arcade-Style Shuffleboard
http://www.codeimp.com?p=pandemic
MIT License
7 stars 0 forks source link

No Game Over when the last puck in the last round bounces back under the bridge #1

Closed klapstoelpiloot closed 2 years ago

klapstoelpiloot commented 2 years ago

Problem: When in the last round, the last puck causes a transition to RemovePuckState, then there is no transition to FinishedState.

Desired behavior: It should ignore the fact the puck needs to be removed, because it no longer matters. It was the last puck in the last round anyway, so if it didn't add to the score then that's it. The game should transition to the FinishedState.

klapstoelpiloot commented 2 years ago

This may also happen at the end of the 1st or 2nd round. In this case we cannot ignore the puck (because it should be removed from the game) but we do need to continue to the IntermissionState.