[자동차 경주] 이총명 미션 제출합니다. #932
Open
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.
기능 구현
자동차 관리: CarName VO, Car 도메인 클래스로 이름 검증 및 전진 로직 구현
경주 진행: RacingGame으로 라운드별 진행 관리
우승자 판정: RaceResult로 단독/공동 우승자 처리
입출력 처리: InputView, OutputView로 사용자 인터페이스 구현
테스트 코드
각 도메인 클래스별 단위 테스트 작성
ApplicationTest 통과 확인 (기능 테스트, 예외 테스트)
도메인 중심 설계
CarName: 자동차 이름 VO (불변 객체)
Car: 자동차 도메인 (이름, 위치, 전진 로직)
Cars: 자동차 목록 일급 컬렉션 (중복 검증, 우승자 찾기)
RacingGame: 경주 게임 진행 로직
RaceResult: 경주 결과 및 우승자 판정
InputView/OutputView: 입출력 처리 분리