[행성 로또] 조용민 미션 제출합니다.#157
Open
YONGMINJO1 wants to merge 25 commits intowoowacourse-precourse:mainfrom
Open
Conversation
- 기능 목록 작성 - 입출력 요구사항
- 5개의 숫자 검증 - 5개의 숫자 테스트 통과
- 로또 번호는 중복 되지 않아야한다.
- 로또 번호는 1 ~ 30까지
- enum으로 등수 구분 기능 구현
- Lotto 기본 클래스 생성 - Lotto Enum 클래스 생성
- 당첨 번호가 포함 되어있는지 확인
- 보너스번호 중복 검증 - 보너스 번호 범위 검증 - 당첨 번호 일치 기능 - 당첨 번호 테스트 통과
- 일급컬렉션 사용
- IllegalArgumentException 예외처리
- Lotto Tickets 생성 시 빈 값 검증 - 여러장 구매 테스트 - 빈 리스트로 생성 시 예외 발생 - 로또 목록 조회
- Lotto 5개 번호 검증 체크 - Lotto 중복 검증 체크 - LottoTickets null 검증 체크 - LottoTickets 빈 값 검증 체크
- 기본 구조 구현
- 등수별 개수 조회기능 - 상금 계산 기능 - 수익률 계산 기능
- LottoResult 클래스 체크 - LottoResult 등수별 기수 조회기능 체크 - LottoResult 상금 계산 기능 체크 - LottoResult 수익률 계산 체크
- 1장 생성 기능 구현 - 여러장 생성 기능 구현
- LottoGenerator 클래스 생성 체크 - LottoGenerator 1장 생성 기능 체크 - LottoGenerator 여러장 생성 체크
- 당첨번호 입력 기능 - 보너스 번호 입력
- getBonusNumber()
- 모든 기능 연결
- LottoController.run()실행
- 로또 구입 금액 입력 (로또 1장의 가격 500원) 체크� - 로또의 당첨번호, 보너스 번호 입력 (번호는 쉼표(,)를 기준으로 구분 체크) - 사용자가 구매한 로또번호 생성 가능 체크 - 구매한 로또번호와 당첨번호 비교 가능 체크 - 당첨내역 출력 체크 - 수익률 출력 체크
- LottoResult에 toRankMap() 메서드 추가하여 OutputView 호환 - totalTickets 필드 추가로 정확한 미당첨 계산 - Controller에서 불필요한 View 인스턴스 제거 - Application 생성자 간소화
문제: - 잘못된 입력 시 예외를 throw하여 프로그램 종료 해결: - askAmount, askWinningLotto, askBonusNumber에 while 루프 추가 - 예외 발생 시 에러 메시지 출력 후 재입력 받음 - 사용자 경험 개선 및 예외 테스트 통과
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.
죄송합니다 늦지만 지금이라도 제출하겠습니다!