labs/Lab_W3_Solution.py
def actions(self, state):
        """Return the actions that can be executed in the given
        state. The result would typically be a list, but if there are
        many actions, consider yielding them one at a time in an
        iterator, rather than building them all at once."""
        
        
        """Return a list of (action . state) pairs.  An action is a triple of the
        form (delta-m delta-c delta-b), where a positive delta means to move from
        side 1 to side 2; negative is the opposite.  For example, the action (1 0 1)
        means move one missionary and 1 boat from side 1 to side 2."""
        
        possible_actions = ["101", "011", "201", "021", "111","101", "011", "201",
                "021", "111"]
        
        return possible_actions
Return the actions that can be executed in the given
        state. The result would typically be a list, but if there are
        many actions, consider yielding them one at a time in an
        iterator, rather than building them all at once.
Return the actions that can be executed in the given
state. The result would typically be a list, but if there are
many actions, consider yielding them one at a time in an
iterator, rather than building them all at once.
Return the actions that can be executed in the given state . The result would typically be a list but if there are many actions consider yielding them one at a time in an iterator rather than building them all at once .
def actions(self, state):
        possible_actions = ["101", "011", "201", "021", "111","101", "011", "201",
                "021", "111"]
        return possible_actions
def actions ( self , state ) : """Return a list of (action . state) pairs.  An action is a triple of the
        form (delta-m delta-c delta-b), where a positive delta means to move from
        side 1 to side 2; negative is the opposite.  For example, the action (1 0 1)
        means move one missionary and 1 boat from side 1 to side 2.""" possible_actions = [ "101" , "011" , "201" , "021" , "111" , "101" , "011" , "201" , "021" , "111" ] return possible_actions
Return the actions that can be executed in the given
state.
Return the actions that can be executed in the given state .
"""Return the actions that can be executed in the given
        state. The result would typically be a list, but if there are
        many actions, consider yielding them one at a time in an
        iterator, rather than building them all at once.""" """Return a list of (action . state) pairs.  An action is a triple of the
        form (delta-m delta-c delta-b), where a positive delta means to move from
        side 1 to side 2; negative is the opposite.  For example, the action (1 0 1)
        means move one missionary and 1 boat from side 1 to side 2."""
self
state