From f89fe10318a32d4ea0b11edd1b3a8676f66cf9b7 Mon Sep 17 00:00:00 2001 From: DylanVsn <43576618+DylanVsn@users.noreply.github.com> Date: Fri, 8 Nov 2019 10:47:33 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20pr=C3=A9cision=20tp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/carte.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/carte.py b/src/carte.py index 0ae8ff3..5ef8f79 100644 --- a/src/carte.py +++ b/src/carte.py @@ -73,6 +73,8 @@ class Map: if teleporter_count: # not all teleporters are on edges return False + ### ATTENTION - we need to verify teleporters are in front of the other + # no ground tile on border if any(Tile.GRD in edges): return False @@ -90,4 +92,4 @@ class Map: return False # we have to verify if there is only 1 connexity component of (Tile.GRD, Tile.TPT, Tile.BPD, Tile.SPD) - return True \ No newline at end of file + return True