From 7a2e1173d9fee7bc892f64a5e7087d59890145c7 Mon Sep 17 00:00:00 2001 From: Nicolas Margulies Date: Fri, 23 Oct 2020 14:42:46 +0200 Subject: [PATCH] Made the entities optional when creating maps --- dungeonbattle/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dungeonbattle/interfaces.py b/dungeonbattle/interfaces.py index 5823352..52c5234 100644 --- a/dungeonbattle/interfaces.py +++ b/dungeonbattle/interfaces.py @@ -11,7 +11,7 @@ class Map: height: int tiles: list - def __init__(self, width: int, height: int, tiles: list, entities: list): + def __init__(self, width: int, height: int, tiles: list, entities = []: list): self.width = width self.height = height self.tiles = tiles