changement des

This commit is contained in:
Chiara
2020-04-27 13:56:34 +02:00
parent 5d97ac65b8
commit 5ccf1a731b
5 changed files with 59 additions and 17 deletions

View File

@@ -19,8 +19,6 @@ public class JouerSonTour1Controller implements Initializable{
private Joueur joueur;
@FXML private Pane rootPane;
@FXML private Label d6;
@FXML private Label d4;
@FXML private Label nomJoueur;
@Override
@@ -30,13 +28,7 @@ public class JouerSonTour1Controller implements Initializable{
@FXML
public void lancerDes(MouseEvent mouseEvent) throws IOException, InterruptedException{
//lancer d6
int d6 = new Random().nextInt(6) + 1;
this.d6.setText(Integer.toString(d6));
//lancer d4
int d4 = new Random().nextInt(4) + 1;
this.d6.setText(Integer.toString(d4));
Thread.sleep(1000);