initial display first

This commit is contained in:
martinbst 2025-05-07 21:51:34 +02:00
parent ab467ea11e
commit 45f1121619
2 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,7 @@ public class Main {
// launches graphical interface :
MyInterface mjf = new MyInterface();
mjf.introduction();
mjf.setVisible(true);
}

View File

@ -174,7 +174,6 @@ public class MyInterface extends JFrame {
public void clicButtonStart() {
this.instantiateSimu();
int introduction = introduction();
int depth = askDifficulty();
int time = askTime();
game.setAutoPlayerDepth(depth);
@ -345,7 +344,7 @@ public class MyInterface extends JFrame {
default: return 600; // 10 min
}
}
private int introduction() {
public int introduction() {
int boardWidth = 600;
int boardHeight = 600;