patch collision with upper wall

main 1
Plaza521 2022-10-26 22:56:34 +03:00 committed by GitHub
parent 5aec5156ad
commit b961a2119f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Point:
raise TypeError("You can compare only Point with Point") raise TypeError("You can compare only Point with Point")
def __hash__(self) -> None: def __hash__(self) -> None:
return int(f"{self.x}000{self.y}") return int(f"{abs(self.x)}000{abs(self.y)}")
def __str__(self) -> str: def __str__(self) -> str:
return f"{self.x = } | {self.y = }" return f"{self.x = } | {self.y = }"