Skip to content

Refactor : 자동차 경주 게임 피드백 수정 - #14

Open
sunghyuki wants to merge 5 commits into
sproutt:kikatfrom
sunghyuki:kikat
Open

Refactor : 자동차 경주 게임 피드백 수정#14
sunghyuki wants to merge 5 commits into
sproutt:kikatfrom
sunghyuki:kikat

Conversation

@sunghyuki

Copy link
Copy Markdown

가장 중요한 요구사항인 랜덤값이 4이상일 경우 전진하는 비즈니스 로직이 잘못되어 수정했습니다

- Car 클래스의 move 메서드 매개변수로 랜덤값 받기
- move 메서드 내부에서 차의 전진 조건 판별
- playOneRound 메서드 수정
- 차의 전진 조건을 판별하는 인터페이스 및 구현 클래스 삭제
- 차의 전진 조건 판별을 차 도메인 클래스에서 수행하기 때문에 RandomMovingRule 클래스 삭제에 따라 RandomMovingRuleTest도 삭제한다.
- 차의 위치를 StringBuilder를 이용해 출력
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.

1 participant