Open
Conversation
202110861
reviewed
Oct 31, 2025
|
|
||
| class Car { | ||
| #name; | ||
| #position; |
There was a problem hiding this comment.
private 필드를 사용하여 name, position을 정의한 이유가 궁금합니다!
|
mvc 패턴 사용하셨네요!! mvc와 utils에 각각 어떤 기준으로 파일을 배치?했는지 궁금합니다! |
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.
[과제2] 자동차 경주 게임
📃 목차
과제 소개
기능 요구 사항
,)를 기준으로 구분하며 이름은 5자 이하만 가능하다.,)를 이용하여 구분한다.Error를 발생시킨 후 애플리케이션을 종료시킨다.구현할 기능 목록
- 기능 : 과제의 기능 요구 사항과 사용법을 설명하는 README.md 파일을 작성한다.
- 세부 사항
- 기능 : 자동차의 이름을 조건에 맞게 지정하고 시도할 횟수를 지정한다.
- 세부 사항
,)를 구분자로 지정한다.- 기능 : 0 ~ 9의 숫자를 뽑고 숫자에 맞는 행동을 취한다.
- 세부 사항
- 기능 : 현재 자동차가 이동한 칸의 개수만큼
-로 표현한다.- 세부 사항
-를 하나씩 추가한다.- 기능 : 시도할 횟수가 끝나면 우승자를 쉼표와 스페이스(
,)로 구분한다.- 세부 사항
요구 사항 분석
테스트 케이스
실행 방법
Case 1 (성공 - 우승자 1인)
Case 2 (성공 - 우승자 2인 이상)
Case 3 (성공 - 0회 시도 후 모두 우승인 경우)
Case 4 (예외 - 입력한 자동차가 없는 경우)
Case 5 (예외 - 자동차의 이름이 5자 초과인 경우)
Case 6 (예외 - 자동차 이름이 공백인 경우)
Case 7 (예외 - 자동차 이름이 중복인 경우)
Case 8 (예외 - 시도할 횟수가 음수나 숫자가 아닌 값을 입력한 경우)
Path Tree
시행착오 및 배운점
[과제2]의 시행착오 및 배운점
회고