From 202ef358b0ede4a80b87223bc4d1718a58d123af Mon Sep 17 00:00:00 2001 From: Vasilis Valatsos Date: Sun, 10 Dec 2023 12:02:56 +0100 Subject: [PATCH] Updated print statements --- level.py | 2 +- pneuma.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/level.py b/level.py index 62e4ab1..44af9f6 100644 --- a/level.py +++ b/level.py @@ -310,7 +310,7 @@ class Level: for player in self.player_sprites: if player.is_dead(): - print('Player dead') + print(f"\nPlayer {player.player_id} is dead") player.stats.exp = -10 player.update() self.dead_players[player.player_id] = player.is_dead() diff --git a/pneuma.py b/pneuma.py index 18da4a6..2f2db6e 100644 --- a/pneuma.py +++ b/pneuma.py @@ -213,7 +213,9 @@ if __name__ == "__main__": # Check for new best score if score > best_score[player.player_id]: - print(f"\nNew best score for player {player.player_id}:\ + print(f"\nEpisode:\ + {episode}\ + \nNew best score for player {player.player_id}:\ {score}\ \nOld best score for player {player.player_id}: \ {best_score[player.player_id]}")