-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: ejy
Are you sure you want to change the base?
The head ref may contain hidden characters: "9\uC8FC\uCC28"
[10주차] ejy #62
Conversation
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.
거의 다 된 것 같습니다.
피드백 드린부분 수정해서 재리뷰 요청 부탁드립니다.
Cars cars = new Cars(inputCarNames()); | ||
GameCounter gameCounter = inputGameCount(); | ||
OutputView.printGamePreview(); | ||
while (gameCounter.nextRound() > FINAL_ROUND) { |
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.
gameCounter
에 메세지를 보내도 구현이 가능 할 것 같네요
import java.util.stream.IntStream; | ||
|
||
import static view.InputView.inputCarNames; | ||
import static view.InputView.inputGameCount; |
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.
도 좋지만
객체를 명시해주면 더 이해하기 쉬워집니다
|
||
public class RandomUtils { | ||
private static final Random RANDOM = new Random(); | ||
private static final int ZERO = 0; |
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.
0은 ZERO
죠?
무슨 의미가 있는 걸까요
String input = nextLine(); | ||
validateCarNames(input); | ||
return Arrays.asList(input.split(DELIMITER)); | ||
} |
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.
어떤 부분에선 도메인으로 어떤 부분에서는 원시타입으로 리턴하는데
해당 부분을 통일 시켜주세요
|
||
public void moveCars() { | ||
cars.stream() | ||
.filter(car -> Engine.isPower()) |
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.
외부 객체가 Car
의 행동을 결정하네요?
.forEach(Car::go); | ||
} | ||
|
||
public void printCars() { |
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.
도메인이 뷰의 역할도 하네요?
No description provided.