Skip to content

Commit

Permalink
fix winner printing for real
Browse files Browse the repository at this point in the history
  • Loading branch information
hstennes committed Jan 4, 2025
1 parent 1ab61d0 commit 3dc65f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battlecode25/engine/game/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class RunGameArgs:
debug: bool

def get_winner_string(args: RunGameArgs, reason: DominationFactor, team: Team, rounds: int):
team_name = args.player1_name if team == Team.A else args.player2_name
team_name = f"{args.player1_name} (A)" if team == Team.A else f"{args.player2_name} (B)"
string = " " * ((50 - len(team_name)) // 2) + team_name + " wins (round " + str(rounds) + ")\nReason: "

if reason == DominationFactor.PAINT_ENOUGH_AREA:
Expand Down

0 comments on commit 3dc65f1

Please sign in to comment.