#NEWLINE# def __str__( self , margins = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# b = self . boardToString ( margins = margins ) #NEWLINE# top = ( '\n' * margins . get ( 'top' , 0 ) ) #NEWLINE# bottom = ( '\n' * margins . get ( 'bottom' , 0 ) ) #NEWLINE# scores = ( ' \tScore: %5d  Best: %5d\n' % ( top . score , self . best_score ) ) #NEWLINE# return ( ( top + b . replace ( '\n' , scores , 1 ) ) + bottom )