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

refactor: 5단계 자동차 경주 (리팩토링) PR 코멘트 반영 #3898

Merged
merged 11 commits into from
Oct 10, 2022

Conversation

AnneMayor
Copy link

#3852 에 남겨주신 PR 코멘트 반영하였습니다.

Copy link

@younlll younlll left a comment

Choose a reason for hiding this comment

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

안녕하세요! Lee Anne님
자동차 경주 미션의 마지막 단계까지 잘 구현해주셨네요! 💯
의견 하나 남겨 드렸는데 참고 정도만 하시면 좋을거 같습니다!
이만 마지막 미션 머지하도록 하겠습니다. 수고하셨습니다!🙇‍♀️
다음 미션들도 응원하도록 하겠습니다.🚀👍

}

@Override
public void raceResult(RacingCars racingCars, int numOfRaces) {
for (int count = 1; count <= numOfRaces; count++) {
racingCars.move(new RandomMovingStrategy());
outputCarsLocation(racingCars);
outputCarsLocation(racingCars.move(new RandomMovingStrategy()));
Copy link

Choose a reason for hiding this comment

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

피드백 드린 내용은 클래스 분리를 의도한 내용이였지만
추후 미션에서는 클래스에 한 가지 역할을 하도록 하셔도 좋을 것 같습니다.

그래도 메소드 분리와 네이밍을 잘 해주셔서 어떤 의도로 구현하셨는지
가독성 측면에서도 좋고 제가 소스코드를 이해하기도 좋았습니다.

Copy link
Author

Choose a reason for hiding this comment

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

아 넵넵! 코멘트 감사합니다.
다음 미션에서는 말씀하신 클래스 분리로 가져가도록 하겠습니다.
그동안 수고 많으셨습니다 🙂

@younlll younlll merged commit 28a6963 into next-step:annemayor Oct 10, 2022
@AnneMayor AnneMayor deleted the step5 branch October 10, 2022 05:03
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.

None yet

3 participants