ajout précision tp

This commit is contained in:
DylanVsn 2019-11-08 10:47:33 +01:00
parent a75f5298a0
commit f89fe10318

View File

@ -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
return True