Open
Conversation
# Conflicts: # README.md
- 로또 번호는 5개의 중복되지 않는 수를 가짐 - 로또와 로또 저장소의 단위 테스트 작성 및 통과
- 서비스 레이어에서 구입 금액에 따라 500원으로 나누고 정수단위로 내림하여 로또 구입 개수 산정 후 그만큼 로또 번호 생성 - 단위 테스트 생성 및 통과
- 이후에 당첨 조건을 주입받아 확장성을 늘리기로 한다. (우선은 하드코딩으로 구현)
- 기존에 아무것도 반환하지 않았다
- 기본 테스트의 기능 테스트통과 - 검증을 제외한 모든 기능 연결 - TODO: 검증기능구현
- 잘못 작성된 TODO 수정
- 기본 구현 완료
- 승리 조건을 변경하기 쉽도록 상수로 대체
- 숫자 개수에 등수조건 개수가 잘못 들어가 있었음 - TODO: 로또 숫자 개수 상수화
- 기본적으로 최소 구입 금액이 나와있진 않음
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-planetlotto-precourse
전체 기능목록
입력
출력
검증
뷰는 이미 문제에 구현되어 있으므로 이를 활용해서 나머지를 구현해야함! 뷰에서 요구하는파라미터를 제공해야한다
실제 구현한 기능 목록
검증
로또번호
도전목록 (15:46 시작 종료시간 17:00)
최종테스트에서 도전은 리팩토링과 확장성을 고려한 하드코딩된 값 제거에 초점을 두었습니다.
승리 조건을 상수로 관리하여 핵심 로직(도메인, 리포지토리, 서비스)에 손대지 않고도 상수파일 변경만으로 승리 조건을 바꿀 수 있게 했습니다.
리팩토링 도전 (하드코딩 제거)