Updated print statements
This commit is contained in:
parent
8e2664533f
commit
202ef358b0
2 changed files with 4 additions and 2 deletions
2
level.py
2
level.py
|
@ -310,7 +310,7 @@ class Level:
|
||||||
|
|
||||||
for player in self.player_sprites:
|
for player in self.player_sprites:
|
||||||
if player.is_dead():
|
if player.is_dead():
|
||||||
print('Player dead')
|
print(f"\nPlayer {player.player_id} is dead")
|
||||||
player.stats.exp = -10
|
player.stats.exp = -10
|
||||||
player.update()
|
player.update()
|
||||||
self.dead_players[player.player_id] = player.is_dead()
|
self.dead_players[player.player_id] = player.is_dead()
|
||||||
|
|
|
@ -213,7 +213,9 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
# Check for new best score
|
# Check for new best score
|
||||||
if score > best_score[player.player_id]:
|
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}\
|
{score}\
|
||||||
\nOld best score for player {player.player_id}: \
|
\nOld best score for player {player.player_id}: \
|
||||||
{best_score[player.player_id]}")
|
{best_score[player.player_id]}")
|
||||||
|
|
Loading…
Reference in a new issue