Skip to content

Commit

Permalink
Merge pull request #195 from solodov/main
Browse files Browse the repository at this point in the history
sort exists for printing
  • Loading branch information
solodov authored Jun 27, 2024
2 parents 0013a84 + 47edb01 commit 259bf19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/quantum_rpg/main_loop_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
)
Expand All @@ -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.
"""
)
Expand Down Expand Up @@ -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.
"""
)
2 changes: 1 addition & 1 deletion examples/quantum_rpg/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 259bf19

Please sign in to comment.