labyrinth_explorer.py
def playOut(actions):
    '''
    Moves the player based on the action
    '''
    for action in actions:
        if(action == "Move Up"):
            player.rect.y -= BLOCKSIZE
        elif(action == "Move Down"):
            player.rect.y += BLOCKSIZE
        elif(action == "Move Right"):
            player.rect.x += BLOCKSIZE
        elif(action == "Move Left"):
            player.rect.x -= BLOCKSIZE
        updateScreen(player, end_rect, walls)
        sleep(0.1)

    Moves the player based on the action
    
Moves the player based on the action
Moves the player based on the action
def playOut(actions):
    for action in actions:
        if(action == "Move Up"):
            player.rect.y -= BLOCKSIZE
        elif(action == "Move Down"):
            player.rect.y += BLOCKSIZE
        elif(action == "Move Right"):
            player.rect.x += BLOCKSIZE
        elif(action == "Move Left"):
            player.rect.x -= BLOCKSIZE
        updateScreen(player, end_rect, walls)
        sleep(0.1)
def playOut ( actions ) : for action in actions : if ( action == "Move Up" ) : player . rect . y -= BLOCKSIZE elif ( action == "Move Down" ) : player . rect . y += BLOCKSIZE elif ( action == "Move Right" ) : player . rect . x += BLOCKSIZE elif ( action == "Move Left" ) : player . rect . x -= BLOCKSIZE updateScreen ( player , end_rect , walls ) sleep ( 0.1 )
Moves the player based on the action
Moves the player based on the action
'''
    Moves the player based on the action
    '''
actions