-
Notifications
You must be signed in to change notification settings - Fork 191
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
[자동차 경주 게임] 김용래 미션 제출합니다. #116
Closed
Closed
Conversation
This file contains 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
- 입력받을 자동차를 저장할 Car 클래스 구현 - Car 객체를 갖고 있을 CarList 클래스 구현
- racingCountInput으로 입력값을 받아 CarList클래스의 game() 으로 전달
- isMovable() 메서드로 전진 여부 결정 후전달
- 결과를 표시할 span 태그가 없으면 생성 - 실행 결과를 해당 span에 표시
- 경주가 끝나면 displayWinner() 에서 최종 우승자 출력 - 우승자가 다수일경우 makeResultString()으로 정제 후 출력
- isValidate()를 이용하여 사용자의 입력 값을 검증 - 자동차의 이름이 5자를 초과하는 경우 - 입력값이 1보다 작을 경우
- 최종 우승자를 표시하는 태그 내에 다른 문자열이 포함되면 test에 실패하게 되어 이와 관련한 세부내용 추가
- 최종 우승자 출력 로직을 test 기준에 맞게 수정
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주차 미션 제출합니다.
지난 피드백 중 살아있는 문서를 만들라는 말이 굉장히 와닿았던 주차였습니다.
처음 받았던 요구사항을 토대로 만든 문서에 개발을 해가며 살을 붙이고 수정하는 작업들을 통해
동기부여와 동시에 프로젝트의 개발 방향성이 명확해지는것을 느낀 한 주였습니다.
기능별로 분리되어 유지보수가 용이한 코드를 만드는데 1차적인 목표를 두었고,
읽기 쉬운 코드와 함수, 변수 이름들을 넣으려고 노력했습니다.
주차가 지날때마다 개발자로서 조금씩 성장하는 것을 느낄 수 있어서 즐거운 도전입니다.
감사합니다.