-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test #3
base: main
Are you sure you want to change the base?
Conversation
private String getResultMessage(List<String> moveResults) { | ||
return format(GAME_OUTPUT_MESSAGE,moveResults.stream() | ||
.map(i-> MoveResult.getCommand()) | ||
.collect(Collectors.joining(GAME_DELIMITER_MESSAGE))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 과정은 다른 곳에서 처리하고 view에선 출력만 해주면 좋을거 같아요!
public class BridgeGameController { | ||
|
||
private InputView inputView = new InputView(); | ||
private OutputView outputView = new OutputView(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그 객체가 이렇게 초기화를 시킨다고 본래는 생각하고 있지만 기본 생성자를 이용하여서 초기화를 먼저 해주어야지 진짜로 초기화 해주시는 거라고 하시더라구요.
그래서 앞으로 생성자 안에서 객체 초기화 시켜주시면 좋을 거 같아요
ex)
BridgeGameController{
this.inputView=new InputView();
}
No description provided.