Open
Conversation
added 10 commits
October 27, 2025 03:53
- readme 기능 목록, 입력 상황, 파일 구조 정리 - gitignore 추가
- 이름 입력 가이드 문구 출력 - 시도 횟수 입력 가이드 문구 출력
- 자동차 이름 입력 - 시도 횟수 입력
- 쉼표(,)를 이용하여 이름 분리
- 자동차 이름 입력 값 검증 - 시도 횟수 입력 값 검증
- 0~9 사이의 무작위 값 추출 - 4 이상일 경우, 전진(true)
- 객체는 자동차 이름, 위치를 저장 - 자동차 전진
- 쉼표(,)를 이용하여 이름을 합침
-자동차 이름 및 전진도 출력 - 최종 우승자 출력
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.
kotlin-racingcar-precourse
기능 목록
기능 목록은 아래와 같은 형식을 따름
true)입력 상황 정리
ILLEGALARGUMENTEXCEPTION,)pobi,,,ILLEGALARGUMENTEXCEPTION{"POBI", "", "", ""}와 같은 상태이다. 1번 예시와 마찬가지로 빈 문자는 이름으로 사용할 수 없다.pobi:woniILLEGALARGUMENTEXCEPTION{"pobi:woni"}와 같은 상태이다.:는 구분의 대상이 아니기에 하나의 문자열로 처리 되고, 총 9자로 길이 초과이다.poooooobiIllegalArgumentException)사용pobi,wo ni최종 우승자 : pobi,최종 우승자 : wo ni"wo ni"는 space()가 포함되긴 하였지만, 5자 이하이므로 가능하다.pobi,pobi,pobi최종 우승자 : pobi,최종 우승자 : pobi,pobi{"pobi", "pobi", "pobi"}와 같이 3개의 객체가 만들어져야 한다. 이름을key로, 길이를value(Map)로 처리로 처리할 경우, 같은key값인"pobi"에서 시존 값을 덮어 써버리는 문제가 발생할 수 있기에 주의해야 한다.jun32최종 우승자 : jun32-1IllegalArgumentException0IllegalArgumentException3.14IllegalArgumentException일IllegalArgumentExceptionIllegalArgumentException3최종 우승자 : pobi파일 구조