(self, obs_t, action_t, legal_actions_list_t)
called when it is player's turn.
called when it is player's turn.
called when it is player s turn .
def add_experience(self, obs_t, action_t, legal_actions_list_t):
        """
        called when it is player's turn.
        """
        if self.obs_t is None:
            self.obs_t = np.copy(obs_t)
            self.action = action_t
            self.legal_actions_list_t = np.copy(legal_actions_list_t)
        elif self.obs_tp1 is None:
            self.obs_tp1 = np.copy(obs_t)
            self.action_tp1 = action_t
            self.legal_actions_list_tp1 = np.copy(legal_actions_list_t)
        else:
            raise BufferError("This should not happen.")
def add_experience ( self , obs_t , action_t , legal_actions_list_t ) : if self . obs_t is None : self . obs_t = np . copy ( obs_t ) self . action = action_t self . legal_actions_list_t = np . copy ( legal_actions_list_t ) elif self . obs_tp1 is None : self . obs_tp1 = np . copy ( obs_t ) self . action_tp1 = action_t self . legal_actions_list_tp1 = np . copy ( legal_actions_list_t ) else : raise BufferError ( "This should not happen." )