Compare commits

..

2 Commits

Author SHA1 Message Date
29fcb83d83 Merge pull request 'garbageCan' (#9) from garbagecan into master
Reviewed-on: #9
2023-03-26 15:25:11 +02:00
Wiktor Szynaka
f3a26b9653 garbageCan 2023-03-26 14:51:05 +02:00

16
garbageCan.py Normal file
View File

@ -0,0 +1,16 @@
from garbage import Garbage
from typing import List, Tuple
class GarbageCan:
position: Tuple[int, int]
garbage: List[Garbage]
def __init__(self, position: Tuple[int, int]) -> None:
self.position = position
self.garbage = []
def add_garbage(self, garbage: Garbage) -> None:
self.garbage.append(garbage)
def remove_garbage(self, garbage: Garbage) -> None:
self.garbage.remove(garbage)