From b961a2119f11f7d3b61a174a353af8085d6ea63c Mon Sep 17 00:00:00 2001 From: Plaza521 <89989298+Plaza521@users.noreply.github.com> Date: Wed, 26 Oct 2022 22:56:34 +0300 Subject: [PATCH] patch collision with upper wall --- point.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/point.py b/point.py index d9d0bc9..8760254 100644 --- a/point.py +++ b/point.py @@ -13,7 +13,7 @@ class Point: raise TypeError("You can compare only Point with Point") 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: return f"{self.x = } | {self.y = }"