initial display first
This commit is contained in:
parent
ab467ea11e
commit
45f1121619
|
|
@ -16,6 +16,7 @@ public class Main {
|
||||||
|
|
||||||
// launches graphical interface :
|
// launches graphical interface :
|
||||||
MyInterface mjf = new MyInterface();
|
MyInterface mjf = new MyInterface();
|
||||||
|
mjf.introduction();
|
||||||
mjf.setVisible(true);
|
mjf.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,6 @@ public class MyInterface extends JFrame {
|
||||||
|
|
||||||
public void clicButtonStart() {
|
public void clicButtonStart() {
|
||||||
this.instantiateSimu();
|
this.instantiateSimu();
|
||||||
int introduction = introduction();
|
|
||||||
int depth = askDifficulty();
|
int depth = askDifficulty();
|
||||||
int time = askTime();
|
int time = askTime();
|
||||||
game.setAutoPlayerDepth(depth);
|
game.setAutoPlayerDepth(depth);
|
||||||
|
|
@ -345,7 +344,7 @@ public class MyInterface extends JFrame {
|
||||||
default: return 600; // 10 min
|
default: return 600; // 10 min
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private int introduction() {
|
public int introduction() {
|
||||||
|
|
||||||
int boardWidth = 600;
|
int boardWidth = 600;
|
||||||
int boardHeight = 600;
|
int boardHeight = 600;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue