[자동차 경주] 김기윤 미션 제출합니다.#50
Open
GiyunKim00 wants to merge 25 commits into
Open
Conversation
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
목표
,)를 구분자로 하는 자동차명 문자열을 입력 받는다.입출력
입력
,)이다.MAX_INT까지 입력 받는다.0일 시, 실질적인 경주 행위가 수행되었다고 보기 어렵기에 예외 처리한다.출력
pobi : --형식으로 출력한다.최종 우승자 : pobi, jun형식으로 출력한다.IllegalArgumentException를 발생시킨 뒤 적절한 에러 문구를 반환한다.필수 요구사항
Kotlin2.2.0에서 실행가능해야하며, 제공된 라이브러리 이외 라이브러리는 사용할 수 없다.camp.nextstep.edu.missionutils라이브러리에서 제공하는 API를 활용한다.ConsoleAPI의readLine()을 활용하여 문자열을 입력받는다.RandomsAPI의pickNumberInRange()를 활용하여 Random 값을 추출한다.코드 구성
MVVM패턴을 활용하여 코드를 작성한다.SRP를 따르고자 노력한다.기능 구현
ConsoleAPI의readLine()을 활용하여 사용자 입력을 받는다.IllegalArgumentException예외를 발생시킨다.IllegalArgumentException예외를 발생시킨다.리팩토링