From 2afbcdaff80fbc2eb06d9c1f8eb2ce32874fd710 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 17 May 2020 00:15:56 +0200 Subject: [PATCH] Removed A* debug text --- src/AI/AutomaticMovement.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AI/AutomaticMovement.py b/src/AI/AutomaticMovement.py index dcfaa72..72fdc15 100644 --- a/src/AI/AutomaticMovement.py +++ b/src/AI/AutomaticMovement.py @@ -129,7 +129,7 @@ def aStar(movable: Entity, target, map): :return: Array of moves """ testCount = 0 - print("Finding path to x:", target.x, " y:", target.y, end='...\n') + # print("Finding path to x:", target.x, " y:", target.y, end='...\n') fringe = PriorityQueue() explored = [] @@ -141,13 +141,13 @@ def aStar(movable: Entity, target, map): while True: if fringe.empty(): # target is unreachable - print("Couldn't find path to x:", target.x, " y:", target.y, end='.\n') + # print("Couldn't find path to x:", target.x, " y:", target.y, end='.\n') return None elem: AStarNode = fringe.get()[2] if goalTest(elem.state, target): - print("Found path to x:", target.x, " y:", target.y, end='.\n') + # print("Found path to x:", target.x, " y:", target.y, end='.\n') movesList = [] if isinstance(target, Entity) or target in map.collidables: