변예린) 리팩토링 및 객체화 진행#12
Open
devBambu wants to merge 11 commits into
Open
Conversation
<문자열 열거형> - correct, nothing 케이스 추가 - checkAnswer() 분기 처리 수정 <setAnswer()> - shuffle 활용하여 반복문 제거 <selectMenu()> - switch문 삭제, Menu 타입으로 바로 반환 - 입력값 공백 삭제 기능 함수 모듈화
- GameController: start() 종료 부분 변경 - InputManager: getUserAnswer() 기존 코드 오류 가능성으로 유효성 검사부 조건 추가 - GameMessage: 스트라이크 or 볼 0일 시 분기 처리 추가
RecordManager addRound() 증가가 안되던 버그 수정 GameController 게임 종료 조건 변경
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.
전체 코드 객체화를 진행하였습니다.
기능별 클래스를 생성하여 해당하는 함수를 이동하였습니다.
추가로 몇몇 코드들은 간소화를 진행해보았습니다.