topText.textProperty().bind(game.getCurrentPlayer().nameProperty().concat(", press R to roll the dice or H to hold your score."));
bottomText.textProperty().unbind();
bottomText.textProperty().bind(game.getCurrentPlayer().nameProperty().concat(" (").concat(game.getCurrentPlayer().totalScoreProperty()).concat(") has currently ").concat(game.getCurrentPlayer().currentScoreProperty()));
topText.setText(currentPlayer.getName()+" wins the game!");
topText.textProperty().bind(game.getCurrentPlayer().nameProperty().concat(" à perdue\n").concat(game.getCurrentPlayer().nameProperty()).concat(", press R to roll the dice or H to hold your score."));
topText.setStyle("-fx-fill: #e74c3c;");// Définir la couleur du texte en rouge
topText.textProperty().bind(currentPlayer.nameProperty().concat(" wins the game"));
topText.setStyle("-fx-fill: #e74c3c;");
buttonRoll.setDisable(true);
buttonRoll.setDisable(true);
buttonHold.setDisable(true);
buttonHold.setDisable(true);
}else{
}else{
// Si le jeu n'est pas terminé, utilisez la couleur par défaut ou une autre couleur de votre choix
topText.setStyle("-fx-fill: black;");
topText.setStyle("-fx-fill: black;");
topText.textProperty().unbind();
topText.textProperty().bind(game.getCurrentPlayer().nameProperty().concat(", press R to roll the dice or H to hold your score."));
bottomText.textProperty().unbind();
bottomText.textProperty().bind(game.getCurrentPlayer().nameProperty().concat(" (").concat(game.getCurrentPlayer().totalScoreProperty()).concat(") has currently ").concat(game.getCurrentPlayer().currentScoreProperty()));