diff --git a/app/src/main/java/fr/ynerant/tarot/ui/newgame/NewGameFragment.java b/app/src/main/java/fr/ynerant/tarot/ui/newgame/NewGameFragment.java index 0e7d3f9..022701f 100644 --- a/app/src/main/java/fr/ynerant/tarot/ui/newgame/NewGameFragment.java +++ b/app/src/main/java/fr/ynerant/tarot/ui/newgame/NewGameFragment.java @@ -541,6 +541,12 @@ public class NewGameFragment extends Fragment { game.setMiseries(miseriesList); game.calculateScores(); + for (int i = 0; i < game.getGameType().getNbPlayers(); ++i) + players.get(i).addScore(game.getGameType(), game.getPoints(players.get(i))); + + for (int i = 0; i < 6; ++i) + totalPoints[i].setText(String.valueOf(((Player) spinners[i].getSelectedItem()).getScore(Game.GameType.values()[nb_players.getProgress()]))); + return game; } });