Removed prints

This commit is contained in:
Felix Kirchner
2025-03-03 00:53:39 +01:00
parent ac6f9454ad
commit d8e4a70009

View File

@@ -18,8 +18,6 @@ class _ActiveGameViewState extends State<ActiveGameView> {
@override
Widget build(BuildContext context) {
sortedPlayerIndices = _getSortedPlayerIndices();
print('Aktuelle Runde: ${widget.gameSession.playerScores[0].length}');
print('playerScores: ${widget.gameSession.playerScores}');
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
middle: Text(widget.gameSession.gameTitle),
@@ -104,14 +102,12 @@ class _ActiveGameViewState extends State<ActiveGameView> {
// Erstelle eine Liste von Indizes der Spieler
List<int> playerIndices =
List<int>.generate(widget.gameSession.players.length, (index) => index);
print('playerIndices: $playerIndices');
// Sortiere die Indizes basierend auf den summierten Punkten (playerScores[i][0])
playerIndices.sort((a, b) {
int scoreA = widget.gameSession.playerScores[a][0];
int scoreB = widget.gameSession.playerScores[b][0];
return scoreA.compareTo(scoreB); // Absteigende Sortierung
});
print('playerIndices sortiert: $playerIndices');
return playerIndices;
}