Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[로또] 김지원 제출합니다. #99

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

kimgwon
Copy link

@kimgwon kimgwon commented Nov 4, 2024

No description provided.

- Implemented getPurchaseAmount() to receive purchase amount of lotto
- Implemented getLotteryNumbers() to receive result of lotto numbers
- Implemented getLotteryBonusNumber() to receive result of lotto bonus number
…lotto numbers

- Implemented lottoNumbers() to validate lotto numbers
- Validated lotto numbers count is 6 and numbers don't duplicate
…ulation lotto ticket

- Implemented getLottoTicketCount() to calculation from amount
…Lotto

- Implemented createRandomLotto() to create random numbers lotto
… number result

- Implemented createResult() to create lotto result
…bers

- Implemented printLottoNumbers() to print lotto numbers
- Implemented getLottoNumbers() to get lotto numbers
…alculating lotto result

- Implemented calculateTotalMatchResult() to calculate result of total lotto
…to public

- Modified lottoNumberNotDuplicate() to public, to use create lotto result in LottoController
Corrected the order of match conditions.
This ensures accurate counting of prize matches.
Ensured lotto numbers are unique and fall in 1 to 45 range.
- Got lotto result numbers, bonus number
- Calculated how many match numbers
- Calculated the rate of return
- Changed condition from (it in numbers) to (resultNumbers[idx] in numbers) as 'it' represents the index, not the value.
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