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

Codespace fictional space potato pjg6jqppg5rwc6p6v #1702

Conversation

ghost
Copy link

@ghost ghost commented Nov 18, 2024

No description provided.

YarikNarozhnyi added 2 commits November 18, 2024 21:23
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.

Your code has been reviewed and it meets the task requirements and constraints as specified. 🎉

Review Summary:

  • Ball Class: Well-implemented with fields color and number. The toString() method is correctly overridden to provide a string representation of the ball.

  • Enum for Colors: The Color enum is correctly defined with a list of color constants.

  • ColorSupplier Class: Implements the getRandomColor() method effectively, using the Random class to return a random color from the Color enum.

  • Lottery Class: Correctly generates a random Ball object with a random color and number (0-100).

  • Application Class: Successfully creates and prints three random Ball objects using the Lottery class.

Your implementation adheres to the guidelines, and no critical issues were found. However, always ensure that your Ball class can accept the correct data types as parameters, as this is crucial for functionality.

Keep up the great work! Remember to review the comments to refine your code further and learn from any mistakes. This will help you avoid similar issues in the future and enhance your coding skills. 🚀

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

@ghost ghost closed this Nov 24, 2024
@ghost ghost deleted the codespace-fictional-space-potato-pjg6jqppg5rwc6p6v branch November 24, 2024 12:40
This pull request was closed.
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