[숫자 야구 게임] 김용래 미션 제출합니다.#111
Closed
usageness wants to merge 17 commits into
Closed
Conversation
Signed-off-by: yongrae <kyr9389@naver.com>
- 1부터 9사이의 세 개의 숫자를 임의로 결정
- 입력한 값이 세 자리 숫자이고, 중복되지 않는 값인지 확인
- 스트라이크, 볼, 낫싱, 정답을 출력
- 유저가 오답을 입력한 경우 힌트를 결과 영역에 표시 - 유저가 정답을 입력한 경우 축하 메시지와 재시작 버튼을 노출
- 결과 영여의 메시지 삭제 - 컴퓨터가 생각한 숫자 초기화
- 많은 책임을 가진 메소드를 별개의 메소드로 분리함
- 직접적인 게임에 관련된 로직은 game - 지엽적인 부분에만 관여하는 함수는 utils
- 결과 메시지 상수로 분리 - innerHTML String 상수로 분리
- clearUserInput() 메소드 추가
- airbnb commit convention에 따라 선언과 export를 분리
- module에 대한 이해 부족으로 작성한 의미 없는 코드 삭제
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.
1주차 미션 제출합니다!
단순 기능 구현은 어렵지 않았지만, 코드 컨벤션과 구조를 고민하는데 많은 시간을 사용하였습니다.
평소엔 크게 신경쓰지 않았던 요소들을 생각하게되는 유익한 시간이었습니다 :)