Skip to content
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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

test #3

wants to merge 15 commits into from

Conversation

ninaaano
Copy link

@ninaaano ninaaano commented Dec 3, 2022

No description provided.

private String getResultMessage(List<String> moveResults) {
return format(GAME_OUTPUT_MESSAGE,moveResults.stream()
.map(i-> MoveResult.getCommand())
.collect(Collectors.joining(GAME_DELIMITER_MESSAGE)));
Copy link
Member

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();
Copy link
Member

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();

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants