[로또] 장재동 미션 제출합니다. - #1350
Open
jaedong29 wants to merge 9 commits into
Open
Conversation
added 9 commits
November 4, 2024 23:29
- 로또 번호를 저장하는 리스트 생성 - 생성자에서 번호의 유효성 검사 수행 - 번호의 개수, 범위, 중복 여부 확인을 위한 구현 - 번호 리스트를 반환하는 getNumbers() 추가
- 당첨 순위를 정의하는 enum 클래스 추가 - 각 등급에 대한 일치 숫자 수 및 당첨 금액 설정 - 각 필드에 대한 getter 구현
- 로또 구매 및 당첨 확인 기능을 포함하는 Rank 클래스 추가 - 구매한 로또 목록과 당첨 내역을 관리 - 당첨 번호 및 보너스 번호에 따른 당첨 횟수 업데이트 기능 구현 - 총 당첨 금액 계산 메서드 추가
- 로또 구입 금액에 대한 유효성 검사 기능 규현 - 숫자가 아닌 입력, 1,000단위 미만 또는 비단위 입력에 대한 예외 처리 추가
- 로또 구매 금액 입력, 당첨 번호 및 보너스 입력 기능 구현 - 구매한 로또 번호 출력 및 당첨 통계 출력 기능 추가 - 유효성 검사 및 예외 처리 구현
- 로또 구매 및 당첨 결과 처리를 담당하는 컨트롤러 구현 - 로또 구매 금액 입력, 로또 번호구매, 당첨 번호 및 보너스 번호 입력 기능 포함 - 당첨 통계 및 수익률 출력 기능 구현
- 구입 금액 유효성 검사 기능에 대한 단위 테스트 구현 - 잘못된 입력에대한 예외 발생 여부 및 메시지 검증 - 정상 입력에 대한 유효성 검사 테스트 추가
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.
No description provided.