Skip to content

Eunsuk#1

Open
eunsukko wants to merge 13 commits intomasterfrom
eunsuk
Open

Eunsuk#1
eunsukko wants to merge 13 commits intomasterfrom
eunsuk

Conversation

@eunsukko
Copy link
Copy Markdown
Owner

No description provided.

eunsukko added 13 commits April 9, 2019 11:17
LEARNING.md 는 무엇을 배웠는지를 스스로 정리할 필요가 있을 듯 해서 넣었음
LottoGame 은 게임의 내용(흐름)을 나타냄
LottoFactory
- 로또를 생성(1~45까지 숫자 중에서 6개를 뽑아서 생성)

NumberPicker
- 입력받은 숫자들 중에서 입력받은 갯수만큼 뽑아서 리턴
- 정말로 뽑기하듯이 + 같은 위치의 수를 최대 1번만 뽑음
read from user input using scanner
this need input check
[TODO] need to check input is valid
당첨 로또와 유저의 로또들을 가지고 분석하는 역할
- 각 등수가 얼마나 당청 되었는지
- 전체적인 수익 계산

분석할 때 필요한 메소드들을 Lotto와 WinningLotto에 추가함
올바른 입력일 때까지 계속해서 받음
입력으로 올바른 당첨 로또를 만들어 냄

올바르다는 것은
-6개의 숫자 (1~45사이의)
-중복이 없는 숫자
-올바른 보너스 번호(올바른 범위 + 로또 번호와 중복없음)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant