-
Notifications
You must be signed in to change notification settings - Fork 599
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
implemented py-battleship task #314
base: master
Are you sure you want to change the base?
Conversation
app/main.py
Outdated
pass | ||
def __init__( | ||
self, | ||
start: tuple, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix type hints, please
app/main.py
Outdated
start: tuple, | ||
end: tuple, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start: tuple, | |
end: tuple, | |
start: tuple[int, int], | |
end: tuple[int, int], |
app/main.py
Outdated
# If it is, then it should check if this cell is the last alive | ||
# in the ship or not. | ||
pass | ||
def fire(self, location: tuple) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def fire(self, location: tuple) -> str: | |
def fire(self, location: tuple[int, int]) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job
No description provided.