diff --git a/examples/quantum_rpg/main_loop_test.py b/examples/quantum_rpg/main_loop_test.py index 182e126b..4ef57daa 100644 --- a/examples/quantum_rpg/main_loop_test.py +++ b/examples/quantum_rpg/main_loop_test.py @@ -597,7 +597,7 @@ def test_main_begin(): A bent sign sticks out of the ground at an angle. -Exits: south, north. +Exits: north, south. """ ) @@ -622,7 +622,7 @@ def test_main_load(): by some mirage. To proceed, you will need to move around this strange occurance. -Exits: south, east, west. +Exits: east, south, west. """ ) @@ -655,7 +655,7 @@ def test_main_bad_save_file(): by some mirage. To proceed, you will need to move around this strange occurance. -Exits: south, east, west. +Exits: east, south, west. """ ) diff --git a/examples/quantum_rpg/world.py b/examples/quantum_rpg/world.py index 02d206e5..47d9d0a4 100644 --- a/examples/quantum_rpg/world.py +++ b/examples/quantum_rpg/world.py @@ -66,7 +66,7 @@ class Location: items: Optional[List[item.Item]] = None def _exits(self) -> str: - return ", ".join([ex.value for ex in self.exits]) + "." + return ", ".join(sorted(ex.value for ex in self.exits)) + "." def _item_str(self) -> str: if not self.items: