When playing versus computer, keep the player move on screen

This commit is contained in:
nemunaire 2020-03-15 13:10:08 +01:00
parent 30513c6acd
commit e07bd78235

View File

@ -214,7 +214,8 @@ while True:
game.current_player.print("\033[91mSorry, something goes wrong: '%s'.\033[0m" % e)
pass
printBoth(chr(27) + "[2J")
if type(game.current_partner) != opale.computer.Computer:
printBoth(chr(27) + "[2J")
game.current_player.print("\n\033[93m%s\033[0m plays: %s\n" % (game.current_partner.name, cards))
printWatchers("\n\033[93m%s\033[0m plays: %s\n" % (game.current_partner.name, cards))
game.current_partner.print("\nYou played: %s\n" % (cards))