-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathApplication.java
More file actions
28 lines (23 loc) · 881 Bytes
/
Copy pathApplication.java
File metadata and controls
28 lines (23 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package baseball;
import baseball.controller.GameController;
import baseball.model.computer.Computer;
import baseball.model.computer.InputValidator;
import baseball.model.computer.RandomNumberGenerator;
import baseball.model.computer.Score;
import baseball.model.player.Player;
import baseball.view.CommonView;
import baseball.view.InputView;
import baseball.view.OutputView;
import java.util.ArrayList;
public class Application {
public static void main(String[] args) {
GameController gameController = new GameController(
new Computer(new ArrayList<>(),new Score(), new RandomNumberGenerator()),
new InputValidator(),
new Player(new ArrayList<>(), 1),
new CommonView(),
new InputView(new InputValidator()),
new OutputView());
gameController.start();
}
}