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

[10주차] ejy #62

Open
wants to merge 7 commits into
base: ejy
Choose a base branch
from
Open

[10주차] ejy #62

wants to merge 7 commits into from

Conversation

jeongyuneo
Copy link

No description provided.

Copy link
Member

@PandaHun PandaHun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

거의 다 된 것 같습니다.

피드백 드린부분 수정해서 재리뷰 요청 부탁드립니다.

Cars cars = new Cars(inputCarNames());
GameCounter gameCounter = inputGameCount();
OutputView.printGamePreview();
while (gameCounter.nextRound() > FINAL_ROUND) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gameCounter에 메세지를 보내도 구현이 가능 할 것 같네요

import java.util.stream.IntStream;

import static view.InputView.inputCarNames;
import static view.InputView.inputGameCount;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

도 좋지만
객체를 명시해주면 더 이해하기 쉬워집니다


public class RandomUtils {
private static final Random RANDOM = new Random();
private static final int ZERO = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0은 ZERO죠?
무슨 의미가 있는 걸까요

String input = nextLine();
validateCarNames(input);
return Arrays.asList(input.split(DELIMITER));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

어떤 부분에선 도메인으로 어떤 부분에서는 원시타입으로 리턴하는데
해당 부분을 통일 시켜주세요


public void moveCars() {
cars.stream()
.filter(car -> Engine.isPower())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

외부 객체가 Car의 행동을 결정하네요?

.forEach(Car::go);
}

public void printCars() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

도메인이 뷰의 역할도 하네요?

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

Successfully merging this pull request may close these issues.

2 participants