Merge pull request #109 from flixcoo/enhance/107-change-point-subtraction-when-reaching-the-point-limit

Change point subtraction when reaching the point limit
This commit is contained in:
2025-07-13 23:15:48 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -282,8 +282,8 @@ class GameSession extends ChangeNotifier {
for (int i = 0; i < players.length; i++) { for (int i = 0; i < players.length; i++) {
if (playerScores[i] == pointLimit) { if (playerScores[i] == pointLimit) {
print('${players[i]} hat genau 100 Punkte erreicht und bekommt ' print('${players[i]} hat genau 100 Punkte erreicht und bekommt '
'deswegen 50 Punkte abgezogen'); 'deswegen ${(pointLimit / 2).round()} Punkte abgezogen');
roundList[roundNumber - 1].scoreUpdates[i] -= 50; roundList[roundNumber - 1].scoreUpdates[i] -= (pointLimit / 2).round();
} }
} }
_sumPoints(); _sumPoints();

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo" description: "Mobile app for the card game Cabo"
publish_to: 'none' publish_to: 'none'
version: 0.4.4+485 version: 0.4.4+486
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4