-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
refactor: Step1 PR 코멘트 반영
- 패키지 이동 - RacingCarService.java 삭제 - RacingCars.java 클래스에 레이스 승자 로직 추가 - RacingCarWithWinner.java 역할 분리
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.
안녕하세요! 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())); |
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.
피드백 드린 내용은 클래스 분리를 의도한 내용이였지만
추후 미션에서는 클래스에 한 가지 역할을 하도록 하셔도 좋을 것 같습니다.
그래도 메소드 분리와 네이밍을 잘 해주셔서 어떤 의도로 구현하셨는지
가독성 측면에서도 좋고 제가 소스코드를 이해하기도 좋았습니다.
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.
아 넵넵! 코멘트 감사합니다.
다음 미션에서는 말씀하신 클래스 분리로 가져가도록 하겠습니다.
그동안 수고 많으셨습니다 🙂
#3852 에 남겨주신 PR 코멘트 반영하였습니다.