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_ver-1 #1266

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

Conversation

KhrypunovMaxim
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 the implementation! 🎉 While there are a couple of minor improvements suggested, they don't impact the core functionality. Keep up the good work and consider the feedback for future enhancements!

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

def __init__(self, name: str, weight: int,
coords: list[int] = None) -> None:
super().__init__(name, weight, coords)
self.coords = coords if coords is not None else [0, 0, 0]

Choose a reason for hiding this comment

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

In the FlyingRobot class, the initialization of self.coords should not be repeated after calling the super().init() method. The super class BaseRobot already initializes self.coords, so this line is unnecessary and could lead to confusion or errors.

current_load: Cargo = None) -> None:
super().__init__(name, weight, coords)
self.max_load_weight = max_load_weight
self.current_load = current_load

Choose a reason for hiding this comment

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

In the DeliveryDrone class, when initializing self.current_load, it might be a good idea to check if the current_load's weight does not exceed max_load_weight. This would ensure that the drone does not start with an overloaded cargo.

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.

3 participants