#NEWLINE# def do_turn( self , player ) : #NEWLINE# #INDENT# while ( ( len ( player . hand ) > 0 ) and player . hand [ 0 ] . can_use ( player , player . game ) ) : #NEWLINE# #INDENT# player . game . play_card ( player . hand [ 0 ] ) #NEWLINE# #UNINDENT# while player . hero . can_attack ( ) : #NEWLINE# #INDENT# player . hero . attack ( ) #NEWLINE# #UNINDENT# done_something = True #NEWLINE# while done_something : #NEWLINE# #INDENT# done_something = False #NEWLINE# for minion in player . minions : #NEWLINE# #INDENT# if minion . can_attack ( ) : #NEWLINE# #INDENT# done_something = True #NEWLINE# minion . attack ( ) #NEWLINE# break