Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxhutchinson committed Aug 21, 2024
1 parent 5321d84 commit d025865
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ui_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,27 +424,21 @@ def abort_game(self):
self.sim.get_turn(),
"END GAME",
""
)
)
)
self.display_points()

def display_points(self):
"""Displays points"""
scores = self.sim.get_final_scores()

score_string = ""

for team_name, agent_scores in scores.items():
team_total_points = 0.0

score_string += f"----- {team_name} -----\n"

for name, score in agent_scores.items():
team_total_points += score
score_string += f" {name:<20} {score}\n"

score_string += f"{team_name} total: {team_total_points}\n\n"

self.display_message(
msgs.Msg(
self.sim.get_turn(),
Expand Down

0 comments on commit d025865

Please sign in to comment.