#NEWLINE# def make_choices( self ) : #NEWLINE# #INDENT# chosen = [ ] #NEWLINE# if ( random ( ) < self . undervote ) : #NEWLINE# #INDENT# return chosen #NEWLINE# #UNINDENT# choices = self . choices . copy ( ) #NEWLINE# choice = self . choose ( choices ) #NEWLINE# chosen . append ( choice ) #NEWLINE# self . after_choice ( choices , choice ) #NEWLINE# choices . add ( STOP_CHOICE ) #NEWLINE# for i in range ( ( self . max_length - 1 ) ) : #NEWLINE# #INDENT# choice = self . choose ( choices ) #NEWLINE# if ( choice is STOP_CHOICE ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# chosen . append ( choice ) #NEWLINE# self . after_choice ( choices , chosen ) #NEWLINE# #UNINDENT# return chosen