Question: class Player: > > > p 1 = Player ( ' Susy ' ) > > > print ( p 1 )

class Player:
"""
>>> p1= Player('Susy')
>>> print(p1)
No game records for Susy
>>> p1.update_loss()
>>> p1
*Game records for Susy*
Total games: 1
Games won: 0
Games lost: 1
Best game: None
>>> p1.update_win(5)
>>> p1.update_win(2)
>>> p1
*Game records for Susy*
Total games: 3
Games won: 2
Games lost: 1
Best game: 2 attempts
"""
def __init__(self, name):
#--- YOUR CODE STARTS HERE
pass
def update_win(self, att):
#--- YOUR CODE STARTS HERE
pass
def update_loss(self):
#--- YOUR CODE STARTS HERE
pass
def __str__(self):
#--- YOUR CODE STARTS HERE
pass
__repr__=__str__
class Wordle:
"""
>>> p1= Player('Susy')
>>> p2= Player('Taylor')
>>> w1= Wordle(p1, 'water')
>>> w2= Wordle(p2, 'cloud')
>>> w3= Wordle(p1, 'jewel')
>>> w1.play('camel')
'_A_E_'
>>> w1.play('ranes')
'rA_E_'
>>> w1.play('baner')
'_A_ER'
>>> w1.play('pacer')
'_A_ER'
>>> w1.play('water')
'You won the game'
>>> w1.play('rocks')
'Game over'
>>> w1.play('other')
'Game over'
>>> w3.play('beast')
'_E___'
>>> w3.play('peace')
'_E__e'
>>> w3.play('keeks')
'_Ee__'
>>> w3.play('jewel')
'You won the game'
>>> w2.play('classes')
'Guess must be 5 letters long'
>>> w2.play('cs132')
'Guess must be all letters'
>>> w2.play('audio')
'_ud_o'
>>> w2.play('kudos')
'_udo_'
>>> w2.play('would')
'_oulD'
>>> w2.play('bound')
'The word was cloud'
>>> w2.play('cloud')
'Game over'
>>> p1
*Game records for Susy*
Total games: 2
Games won: 2
Games lost: 0
Best game: 4 attempts
>>> p2
*Game records for Taylor*
Total games: 1
Games won: 0
Games lost: 1
Best game: None
"""
def __init__(self, player, word):
#--- YOUR CODE STARTS HERE
pass
def process_guess(self, guess):
#--- YOUR CODE STARTS HERE
pass
def play(self, guess):
#--- YOUR CODE STARTS HERE
pass
 class Player: """ >>> p1= Player('Susy') >>> print(p1) No game records

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!