diff --git a/garbageCan.py b/garbageCan.py new file mode 100644 index 0000000..1700390 --- /dev/null +++ b/garbageCan.py @@ -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) \ No newline at end of file