Open
Conversation
작업을 커밋 단위로 쪼개어 효율적으로 개발하기 위해 기능, 테스트 목록을 추가
입력 혼선을 막기 위해 이름을 파싱하고 유스케이스에 반영
무효한 이름을 차단하기 위해 길이·중복·최소 개수 검증을 추가
비정상 횟수 입력을 차단하고 숫자 문자열을 정수로 변환
규칙을 위해 0~9 범위 난수를 래핑합니다.
요구 조건에 맞추어 4 이상일 때만 전진
최종 결과 계산을 위해 각 자동차의 이동 거리를 누적 관리
입력 횟수만큼 규칙을 적용하는 반복을 추가
예시와 동일한 '이름 : ----' 포맷으로 라운드 결과를 출력
출력 시작을 명확히 하기 위해 라운드 전에 헤더를 1회 출력
최댓값 기준 단독/공동 우승자를 도출하고 '최종 우승자 : A, B'로 출력
잘못된 입력 시 [ERROR]메세지 출력 후 즉시 종료
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.
No description provided.