def playAgain(self, number): msg = 'Player {} is the winner! \nDo you want to play again?'.format(number) return messagebox.askyesno('Play again', msg) #|20th.|