Open
Conversation
- 사용자의 구입 금액 입력 기능 구현 (InputView) - 출력 기능 구현 (OutputView) - 숫자 입력 및 1,000원 단위 유효성 검사 추가 - LottoController와 입력 흐름 연동 - 잘못된 입력에 대한 예외 처리 추가
- LottoController에 issueLottos() 메서드 추가로 로또 생성 및 출력 기능 구현 - LottoStore 모델 생성 및 mission-utils Random API로 번호 무작위 생성 적용 - Lotto 클래스에 번호 검증, 정렬, 일치 개수 계산, 보너스 확인 로직 추가 - OutputView에서 로또 구매 결과 및 발행된 로또 번호 출력 구현 - 전체 흐름(App.js): 구입 금액 입력 → 로또 발행 → 출력 순서
- LottoController에 당첨 번호 관련 메서드 추가 - LottoController 보너스 번호 유효성 검사 - InputView 당첨, 보너스 번호 입력 추가 - LOTTO_CONFIG.js 에러 메시지 추가 - 전체 흐름(App.js): 로또 발행 → 당첨 번호 → 보너스 번호
- LottoController 당첨 결과를 계산하고 출력을 요청 - PrizeCalculator.js 구현 - OutPutView - LOTTO_CONFIG.js 당첨 등수, 당첨금 추가 - 전체 흐름(App.js): 결과 계산 및 출력 추가
- Lotto.js test 케이스를 위한 파일 위치 변경 - PrizeCalculator.test.js 테스트 추가 - 당첨 결과 테스트, 수익율 테스트
- 1만장 구매 자동화 테스트
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.
javascript-lotto-precourse
로또
프로젝트 개요
콘솔(Console) 환경에서 동작하는 로또 게임 애플리케이션입니다. 사용자가 구입 금액을 입력하면 로또를 발급하고,
당첨 번호와 보너스 번호를 입력받아 당첨 통계 및 수익률을 계산합니다. 사용자는 구매 금액을 입력하면 자동으로 로또 번호가 발행됩니다.
이후 당첨 번호와 보너스 번호를 입력하면, 전체 당첨 통계와 총 수익률이 계산되어 출력됩니다.
기능적 요소
기능 요구 사항
주요 설계 결정
아키텍쳐
branch 구조
feature/set-upfeature/purchase-input[ERROR]출력 후 재입력feature/lotto-generationfeature/winning-inputfeature/result-calculationfeature/error-handling[ERROR]메시지 통일코드적 요소
[ERROR]메시지 일관성, 타입별 Error 분리 가능요구사항: SRP, 함수 길이 15줄 이하, 3항 연산자 사용 금지, 함수형 프로그래밍 일부 적용
👤 개발자 이름: 이원형 프리코스 과제: 자동차 경주 (racingcar-precourse)