From 76d1e8d03aea96af9339c0021922ac314c0c2a5c Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 27 Feb 2019 09:47:11 +0100
Subject: [PATCH] Fix reproducibility bug due to unstable iteration order.

---
 new/plomrogue/things.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/new/plomrogue/things.py b/new/plomrogue/things.py
index 5ef4297..9bc8490 100644
--- a/new/plomrogue/things.py
+++ b/new/plomrogue/things.py
@@ -63,7 +63,7 @@ class ThingAnimate(Thing):
         neighbors = dijkstra_map.get_neighbors(tuple(self.position))
         n = n_max
         target_direction = None
-        for direction in neighbors:
+        for direction in sorted(neighbors.keys()):
             yx = neighbors[direction]
             if yx is not None:
                 n_new = dijkstra_map[yx]
-- 
2.30.2