From 3f8bf828487adff05d385a785e6c733b68ecbb51 Mon Sep 17 00:00:00 2001 From: kulisak12 Date: Fri, 23 Sep 2022 13:36:05 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Sjednocen=C3=AD=20po=C5=99a?= =?UTF-8?q?d=C3=AD=20sm=C4=9Br=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klient/strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klient/strategy.py b/klient/strategy.py index 509cd20..ba9ca69 100755 --- a/klient/strategy.py +++ b/klient/strategy.py @@ -210,7 +210,7 @@ def pathfind(member: Member, goal: Field) -> Direction: # a také jednoduše získat první krok explored: Set[Field] = set() queue = collections.deque([goal]) - dirs = [Direction.UP, Direction.DOWN, Direction.LEFT, Direction.RIGHT] + dirs = [Direction.UP, Direction.LEFT, Direction.DOWN, Direction.RIqGHT] while queue: field = queue.popleft() for direction in dirs: