Open
Conversation
입력된 이름으로 생성 시에 길이 검사 중복 검사를 진행합니다.
랜덤한 값을 생성합니다. 4 이상일 경우 전진을 진행합니다.
게임을 시작하는 main 함수입니다.
초기 값들을 설정합니다.
자동차 이름을 요청하고 입력받습니다.
시도 횟수를 요청하고 입력받습니다.
주사위 값을 이용해 값 검증을 진행하고, 전진합니다.
Car의 count 를 종합해 우승자를 출력합니다.
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.
구현에 앞서, 올려주신 공지사항에 나와있는 MVC 패턴을 적용하고자 해봤습니다.
각 요소끼리 독립되어야 한다고 하는데, 아직 많이 부족한 것 같습니다.
말씀해주신 클린 코드의 원칙을 최대한 반영하려고 노력했습니다.
지적해 주시면 감사하겠습니다!