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 py-elves-and-dwarves #1349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

misha-cw
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.

Great job on implementing the task requirements! 🎉 The code is well-structured and meets all the core functionalities. There's just a minor typo in the DwarfWarrior class where hummer_level should be hammer_level. It's a small change, but correcting it will improve clarity and consistency. Keep up the excellent work! 😊

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

def __init__(self,
nickname: str,
favourite_dish: str,
hummer_level: int

Choose a reason for hiding this comment

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

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

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.

Consider renaming _hummer_level to _hammer_level to correct the typo and maintain consistency with the intended attribute name.


def player_info(self) -> str:
return (f"Dwarf warrior {self.nickname}."
f" {self.nickname} has a hummer of the"

Choose a reason for hiding this comment

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

The word 'hummer' should likely be 'hammer' in the string to accurately describe the warrior's equipment.

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