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

[자동차 경주] 김형준 미션 제출합니다. #60

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

Conversation

hyoungj00n
Copy link

요약

자동차 경주 게임 방식은 주어진 이동 횟수 동안 무작위 값(0~9) 중 4 이상이 나오면 자동차가 전진하고 게임 종료 후 가장 많이 전진한 자동차가 우승입니다.

구현할 기능 목록

입력

  • 사용자는 경주 할 자동차 이름을 입력받는 기능
  • 사용자는 몇 번의 이동을 할 것인지를 입력받는 기능

레이싱 게임

  • 자동차는 이름으로 n대 자동차 객체 생성
  • 전진하는 조건에 맞춰서 전진 또는 멈춤 기능
  • 입력받은 횟수만큼 게임 실행 기능
  • 게임 진행 후 우승자 출력 기능

예외처리

  • 자동차 이름 5글자 이상인 경우
  • 자동차 이름을 쉼표로 구분하지 않은 경우
  • 몇 번을 이동할 건지 입력할 때 숫자가 아닌 경우

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