agent/agent.py
def _next_state(self, action: int) -> tuple:
        """
        Return the next state based on the given action.

        Args:
            action: the action to perform for some frames

        Returns:
            a tuple of:
                - the next state
                - the reward as a result of the action
                - a flag determining end of episode
        """
        state, reward, done, _ = self.env.step(action=action)
        self.env.render(mode=self.render_mode)

        return state, reward, done

        Return the next state based on the given action.

        Args:
            action: the action to perform for some frames

        Returns:
            a tuple of:
                - the next state
                - the reward as a result of the action
                - a flag determining end of episode
        
Return the next state based on the given action.
Return the next state based on the given action .
def _next_state(self, action: int) -> tuple:
        state, reward, done, _ = self.env.step(action=action)
        self.env.render(mode=self.render_mode)
        return state, reward, done
def _next_state ( self , action : int ) -> tuple : state , reward , done , _ = self . env . step ( action = action ) self . env . render ( mode = self . render_mode ) return state , reward , done
Return the next state based on the given action.
Return the next state based on the given action .
"""
        Return the next state based on the given action.

        Args:
            action: the action to perform for some frames

        Returns:
            a tuple of:
                - the next state
                - the reward as a result of the action
                - a flag determining end of episode
        """
a tuple of:
the next state
the reward as a result of the action
a flag determining end of episode
a tuple of : the next state the reward as a result of the action a flag determining end of episode
self
action
int
the action to perform for some frames
the action to perform for some frames