More tests and more coverage

This commit is contained in:
Yohann D'ANELLO
2020-11-06 16:13:28 +01:00
parent 8ccb74ea54
commit ff435dc328
5 changed files with 115 additions and 8 deletions

View File

@ -8,9 +8,9 @@ class Item(Entity):
super().__init__(*args, **kwargs)
self.held = False
def drop(self, x: int, y: int) -> None:
def drop(self, y: int, x: int) -> None:
self.held = False
self.move(x, y)
self.move(y, x)
def hold(self) -> None:
self.held = True