File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11package racingcar ;
22
3- public class Application {
3+ import racingcar .controller .RacingGameController ;
4+ import racingcar .domain .strategy .MoveStrategy ;
5+ import racingcar .domain .strategy .RandomMoveStrategy ;
6+ import racingcar .validator .InputValidator ;
7+ import racingcar .view .InputView ;
8+ import racingcar .view .OutputView ;
9+ import racingcar .view .RacingConsole ;
10+
11+ public final class Application {
412 public static void main (String [] args ) {
5- // TODO: 프로그램 구현
13+ InputValidator validator = new InputValidator ();
14+ InputView inputView = new InputView (validator );
15+ OutputView outputView = new OutputView ();
16+ RacingConsole console = new RacingConsole (inputView , outputView );
17+ MoveStrategy moveStrategy = new RandomMoveStrategy ();
18+ RacingGameController controller = new RacingGameController (console , moveStrategy );
19+ controller .run ();
620 }
721}
You can’t perform that action at this time.
0 commit comments