Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[자동차 경주] 이지윤 미션 제출합니다. #105

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

jiyuneel
Copy link

@jiyuneel jiyuneel commented Oct 28, 2024

✏️ 기능 목록

  • 사용자 입력
    • 경주할 자동차 이름을 입력받는다. (이름은 쉼표(,) 기준으로 구분)
    • 시도할 횟수를 입력받는다.
  • 자동차 경주
    • 자동차 별로 0에서 9 사이의 무작위 값을 구한다.
    • 무작위 값이 4 이상인 경우 전진한다.
    • 차수별 실행 결과를 출력한다.
  • 우승자 출력
    • 자동차 경주 게임을 완료한 후 최종 우승자를 출력한다.
    • 우승자가 여러 명인 경우 쉼표(,)를 이용하여 구분한다.
  • 예외 발생
    • 사용자가 잘못된 값을 입력할 경우 IllegalArgumentException을 발생시킨다.
    • 애플리케이션을 종료한다.

🚨 예외 상황

  • 자동차 이름
    • 빈 문자열인 경우
    • 5자 이하가 아닌 경우
    • 이름이 중복된 경우
  • 시도할 횟수
    • 숫자 아닌 값을 입력한 경우
    • 0 또는 음수인 경우

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