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

Solution #1403

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

Solution #1403

wants to merge 7 commits into from

Conversation

mykyta-mitin
Copy link

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.

Hello! 😊 You've done a great job implementing most of the code, but there's a critical issue that needs to be addressed before we can approve the pull request. In the calculate_team_total_rating function, you need to call the get_rating() method for each player to correctly sum their ratings. Currently, you're summing the method itself, which won't work as intended. Once you make this change, your code should work perfectly! Keep up the great work, and feel free to reach out if you have any questions. 🌟

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

app/main.py Outdated
Comment on lines 11 to 12
def calculate_team_total_rating(team: list[Player]) -> int:
return sum(player.get_rating for player in team)

Choose a reason for hiding this comment

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

In the calculate_team_total_rating function, you should call the get_rating method for each player to get their rating. Currently, you are summing the method itself, which will not work as intended. Change player.get_rating to player.get_rating() to fix this issue.

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 required classes and functions according to the task description! 🎉 Your code meets the task requirements and constraints, and the project structure is well-organized.

However, there is a minor typo in the DwarfWarrior class where the attribute name hummer_level should be corrected to hammer_level to accurately reflect its intended meaning. Please address this in future updates to ensure clarity and correctness.

Overall, your solution is well-structured and adheres to the required style. Keep up the good work, and continue to learn and improve from the feedback provided. This decision is made to help you move forward with your learning journey. 🚀

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

Comment on lines +7 to +9
hummer_level: int) -> None:
super().__init__(nickname, favourite_dish)
self.hummer_level = hummer_level

Choose a reason for hiding this comment

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

There is a typo in the attribute name hummer_level. It should likely be hammer_level to accurately describe the attribute related to a warrior's hammer.

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