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

implement random ball generation for lottery system #1721

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

acidcor
Copy link

@acidcor acidcor commented Dec 14, 2024

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the solution! 🎉 Your code meets the task requirements and constraints effectively. While there is a minor suggestion to define the number of balls as a constant to avoid magic numbers, it doesn't impact the functionality. Keep up the good work and consider this improvement for future projects to enhance code readability and maintainability. 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

@@ -1,7 +1,16 @@
package core.basesyntax;

public class Application {
private static final Lottery lottery = new Lottery();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider defining the number of balls as a constant to avoid magic numbers. This aligns with the checklist item: 'All magic numbers in your code should be constants.'

@acidcor acidcor closed this Dec 14, 2024
@acidcor acidcor reopened this Dec 14, 2024
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.

2 participants