Loop through sorted ships

This commit is contained in:
Gabriel Augendre 2017-08-28 18:26:33 +02:00
parent 2f00def791
commit 6a656ed98b
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -357,7 +357,7 @@ def main():
perr(game_map.map)
# Play
for ship in game_map.my_ships.values():
for _, ship in sorted(game_map.my_ships.items()):
ship.play_turn()