Add System.in as standard input

This commit is contained in:
Quentin Legot 2021-12-07 15:13:27 +01:00
parent 19dceafb7d
commit 7c00cd474b
2 changed files with 5 additions and 1 deletions

View File

@ -29,3 +29,7 @@ application {
// Define the main class for the application.
mainClassName = 'fr.lnl.game.client.App'
}
run {
standardInput = System.in
}

View File

@ -31,7 +31,7 @@ public class ViewManager {
Player player = game.getCurrentPlayer();
players.get(game.getCurrentPlayer()).getView().show();
game.play();
System.out.println("Le joueur ordinateur numéro" + player.getId() + " a joué");
System.out.println("Le joueur ordinateur numéro " + player.getId() + " a joué");
System.out.println("Il a joué l'action: " + game.getSelectedAction());
}
}