-
Notifications
You must be signed in to change notification settings - Fork 252
[2단계 - 사다리 게임] 미아(이종미) 미션 제출합니다. #352
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
559aa16
refactor: custom exception 제거
jongmee 152a58e
refactor: view에서 사용되는 속성을 domain이 아닌 view에서 관리하기
jongmee 7c3a3d3
docs: step2 구현 기능 목록 추가
jongmee 5d73136
feat: 사다리 결과 입력 받는 기능 구현
jongmee 0c60c4d
feat: 사다리 결과 도메인 클래스 생성
jongmee 7cf44cb
refactor: 사다리 결과 관련 메서드 및 변수명 변경
jongmee 23efef2
refactor: 생성자에서 list를 수정 불가하도록 변경
jongmee c189a12
test: 참가자의 현재 위치로 LadderStep 내에서 다음 위치를 찾는 메서드 테스트
jongmee 9c0b7f3
feat: 참가자의 현재 위치로 LadderStep 내에서 다음 위치를 찾는 기능 구현
jongmee 9529ded
refactor: 참가자 이름(String)을 포장하기
jongmee b88353f
test: 참가자 이름 테스트 클래스 변경
jongmee f14d3f7
test: 입력 순서대로 참가자의 사다리 위치를 설정하는 기능 테스트
jongmee 5740e79
feat: 입력 순서대로 참가자의 사다리 위치를 설정하는 기능 구현
jongmee c66bb7a
refactor: 참가자 위치와 이름 관련 도메인 클래스명 변경
jongmee ddab37f
refactor: LadderStepGenerator 인터페이스 분리
jongmee a0f3a3f
test: 참가자의 시작 위치로 사다리를 타서 최종 위치를 구하는 기능 테스트
jongmee b50760a
feat: 참가자의 시작 위치로 사다리를 타서 최종 위치를 구하는 기능 구현
jongmee 2152835
refactor: Pariticipant getter 반환 타입 변경
jongmee 601dd30
test: 모든 참가자들이 순서대로 사다리를 실행하는 기능 테스트
jongmee 1555ff6
feat: 모든 참가자들이 순서대로 사다리를 실행하는 기능 구현
jongmee 2e37a87
refactor: 불변 객체인 Position을 record로 변경
jongmee d77cd9b
feat: controller에서 사다리 결과 입력 받기
jongmee c86b963
feat: 사다리 실행 결과 출력 구현
jongmee d38d6f1
refactor: LadderGameResult 객체를 result 패키지에서 관리
jongmee aec2bf9
test: 개인별 사다리 타기 결과 산출 기능 테스트
jongmee afedbd6
feat: 개인별 사다리 타기 결과 산출 기능 구현
jongmee 010c323
refactor: PersonalResult 도메인 클래스명 변경
jongmee 5e0d192
refactor: 사다리 실행 결과 도메인 클래스명 LadderGamePrize로 변경
jongmee 6a1b42a
refactor: 참가자별 게임 결과 속성명 변경
jongmee 9520ea9
test: 참가자 이름으로 사다리 실행 결과를 조회하는 기능 테스트
jongmee 3234aa2
feat: 참가자 이름으로 사다리 실행 결과를 조회하는 기능 구현
jongmee ef2d39a
refactor: 게임 결과 조회 반환값 변경
jongmee 0424ff7
feat: 모든 참가자의 게임 결과를 조회하는 getter 생성
jongmee da240bd
refactor: 참가자들의 게임 결과를 구하는 메서드 반환값 변경
jongmee a5fbd73
refactor: OutputView 메서드 순서 변경
jongmee 8dd6600
feat: 사다리 게임 결과 출력 구현
jongmee e0c83e7
refactor: GameResults의 getter 이름 변경
jongmee 9db9345
fix: 존재하지 않는 참가자 이름으로 결과 조회시 재입력 받기
jongmee 55306a1
refactor: 클래스 간 의존성을 주입해주는 manager 클래스 삭제
jongmee f0cd254
refactor: Position 도메인 클래스 삭제
jongmee b33f9d4
refactor: Ladder 클래스의 사다리 실행 메서드명 변경
jongmee 11a1f72
refactor: List를 Set으로 변환할 때 copyOf 대신 HashSet 생성자 사용
jongmee 00543c0
refactor: 사다리 게임 결과를 담는 list를 변경 불가능하도록 수정
jongmee 3ee5b31
refactor: 지역 변수명 변경
jongmee efabfc2
refactor: 인터페이스를 구현하는 메서드에 오버라이드 애너테이션 추가
jongmee 713963a
refactor: 참가자들의 게임 결과를 Map<String, String>으로 저장하기
jongmee f45737b
test: 참가자들의 사다리 게임 실행 테스트 이름 변경
jongmee d276102
refactor: 참가자의 위치(position)를 Participants에서 Map으로 관리
jongmee 89ff18b
refactor: 참가자의 이름을 포장하지 않고 String 으로 관리
jongmee 6001dc8
chore: 변수명 오타 수정
jongmee f986172
refactor: Entry type을 var로 대체
jongmee 2ed7f54
refactor: run() 내부 메서드 및 변수 호출 순서 변경
jongmee aa3b4f5
refactor: 사다리 게임 결과 계산하는 메서드 이름 변경
jongmee 6475887
style: 코드 공백 포맷팅
jongmee 7a45c30
refactor: 불필요한 Optional 객체 생성 제거
jongmee 7921897
refactor: ExceptionHandler에서 불필요한 Optional 제거
jongmee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,10 @@ | ||
| package ladder; | ||
|
|
||
| import ladder.controller.LadderGame; | ||
| import ladder.manager.LadderGameManager; | ||
|
|
||
| public class Application { | ||
| public static void main(String[] args) { | ||
| LadderGameManager ladderGameManager = new LadderGameManager(); | ||
| LadderGame ladderGame = ladderGameManager.createLadderGame(); | ||
| LadderGame ladderGame = new LadderGame(); | ||
| ladderGame.run(); | ||
| } | ||
| } |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/ladder/domain/generator/LadderStepGenerator.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package ladder.domain.generator; | ||
|
|
||
| import ladder.domain.ladder.LadderStep; | ||
|
|
||
| public interface LadderStepGenerator { | ||
| LadderStep generate(final int stepWidth); | ||
| } |
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.