mazeFinder.py
def result(self, node, action):
        '''
        Determines the result from the given action. 
        Since actions are filtered no need to check
        if the action can be done.
        Returns the state after the action is completed
        '''
        state = node.state
        x = state[0]
        y = state[1]
        walls = state[2]
        if(action == "Move Up"):
            y -=BLOCKSIZE
        elif(action == "Move Down"):
            y +=BLOCKSIZE
        elif(action == "Move Right"):
            x += BLOCKSIZE
        elif(action == "Move Left"):
            x -= BLOCKSIZE
        return x,y,walls

        Determines the result from the given action. 
        Since actions are filtered no need to check
        if the action can be done.
        Returns the state after the action is completed
        
Determines the result from the given action.
Since actions are filtered no need to check
if the action can be done.
Returns the state after the action is completed
Determines the result from the given action . Since actions are filtered no need to check if the action can be done . Returns the state after the action is completed
def result(self, node, action):
        state = node.state
        x = state[0]
        y = state[1]
        walls = state[2]
        if(action == "Move Up"):
            y -=BLOCKSIZE
        elif(action == "Move Down"):
            y +=BLOCKSIZE
        elif(action == "Move Right"):
            x += BLOCKSIZE
        elif(action == "Move Left"):
            x -= BLOCKSIZE
        return x,y,walls
def result ( self , node , action ) : state = node . state x = state [ 0 ] y = state [ 1 ] walls = state [ 2 ] if ( action == "Move Up" ) : y -= BLOCKSIZE elif ( action == "Move Down" ) : y += BLOCKSIZE elif ( action == "Move Right" ) : x += BLOCKSIZE elif ( action == "Move Left" ) : x -= BLOCKSIZE return x , y , walls
Determines the result from the given action.
Determines the result from the given action .
'''
        Determines the result from the given action. 
        Since actions are filtered no need to check
        if the action can be done.
        Returns the state after the action is completed
        '''
self
node
action