#NEWLINE# def validate( self , value = None ) : #NEWLINE# #INDENT# "Called to validate that this score reel group is in the position\n        the machine wants it to be in.\n\n        If lazy or strict confirm is enabled, this method will also make sure\n        the reels are in their proper physical positions.\n\n        Args:\n            value (ignored): This method takes an argument of `value`, but\n                it's not used. It's only there because when reels post their\n                events after they're done moving, they include a parameter of\n                `value` which is the position they're in. So we just need to\n                have this argument listed so we can use this method as an event\n                handler for those events.\n        " #NEWLINE# self . log . debug ( 'Checking to see if score reels are valid.' ) #NEWLINE# if ( self . jump_in_progress or self . advance_queue ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# for reel in self . reels : #NEWLINE# #INDENT# if ( reel and ( ( reel . config [ 'confirm' ] == 'lazy' ) or ( reel . config [ 'confirm' ] == 'strict' ) ) and ( not reel . hw_sync ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# self . log . debug ( 'Desired list: %s' , value . desired_value_list ) #NEWLINE# self . log . debug ( 'Assumed list: %s' , self . assumed_value_list ) #NEWLINE# self . log . debug ( 'Assumed integer: %s' , self . assumed_value_int ) #NEWLINE# try : #NEWLINE# #INDENT# self . log . debug ( "Player's Score: %s" , self . machine . game . player . score ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if ( not self . is_desired_valid ( notify_event = True ) ) : #NEWLINE# #INDENT# self . machine . events . post ( ( ( 'scorereelgroup_' + self . name ) + '_resync' ) ) #NEWLINE# self . set_value ( value_list = self . desired_value_list ) #NEWLINE# return False #NEWLINE# #UNINDENT# self . valid = True #NEWLINE# self . machine . events . post ( ( ( 'scorereelgroup_' + self . name ) + '_valid' ) , value = self . assumed_value_int ) #NEWLINE# if self . wait_for_valid_queue : #NEWLINE# #INDENT# self . log . debug ( 'Found a wait queue. Clearing now.' ) #NEWLINE# self . wait_for_valid_queue . clear ( ) #NEWLINE# self . wait_for_valid_queue = None #NEWLINE# #UNINDENT# return True