2024-11-16 10:12:24 +01:00
|
|
|
public class GameController {
|
2024-11-16 17:28:09 +01:00
|
|
|
private final Board board;
|
|
|
|
private final GameView view;
|
2024-11-16 10:12:24 +01:00
|
|
|
|
|
|
|
public GameController(GameView view) {
|
2024-11-16 17:28:09 +01:00
|
|
|
this.board = new Board();
|
2024-11-16 10:12:24 +01:00
|
|
|
this.view = view;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void startGame() {
|
2024-11-16 17:28:09 +01:00
|
|
|
view.setVisible(true);
|
2024-11-16 10:12:24 +01:00
|
|
|
}
|
|
|
|
}
|