Refactor : 자동차 경주 게임 피드백 수정 - #14
Open
sunghyuki wants to merge 5 commits into
Open
Conversation
- Car 클래스의 move 메서드 매개변수로 랜덤값 받기 - move 메서드 내부에서 차의 전진 조건 판별 - playOneRound 메서드 수정 - 차의 전진 조건을 판별하는 인터페이스 및 구현 클래스 삭제
- 차의 전진 조건 판별을 차 도메인 클래스에서 수행하기 때문에 RandomMovingRule 클래스 삭제에 따라 RandomMovingRuleTest도 삭제한다.
- 차의 위치를 StringBuilder를 이용해 출력
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
가장 중요한 요구사항인 랜덤값이 4이상일 경우 전진하는 비즈니스 로직이 잘못되어 수정했습니다