diff --git a/lib/presentation/views/round_view.dart b/lib/presentation/views/round_view.dart index 45249b4..964351d 100644 --- a/lib/presentation/views/round_view.dart +++ b/lib/presentation/views/round_view.dart @@ -308,7 +308,10 @@ class _RoundViewState extends State { // Iterate through the scores to find the player with the minimum score for (int i = 1; i < scores.length; i++) { - if (scores[i] < minScore) { + + // Check if the current score is less than the minimum score + // and is not negative (to avoid bonus points being considered) + if (scores[i] < minScore && !(scores[i] < 0)) { minScore = scores[i]; winnerIndex = i; } diff --git a/pubspec.yaml b/pubspec.yaml index 367411f..2658056 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.5.3+595 +version: 0.5.3+596 environment: sdk: ^3.5.4