(board, position, enemies)
return all([
        any([
            position_is_agent(board, position),
            position_is_powerup(board, position),
            position_is_passage(board, position)
        ]), not position_is_enemy(board, position, enemies)
    ])
Determins if a possible can be passed
Determins if a possible can be passed
Determins if a possible can be passed
def position_is_passable(board, position, enemies):
    '''Determins if a possible can be passed'''
    return all([
        any([
            position_is_agent(board, position),
            position_is_powerup(board, position),
            position_is_passage(board, position)
        ]), not position_is_enemy(board, position, enemies)
    ])
def position_is_passable ( board , position , enemies ) : return all ( [ any ( [ position_is_agent ( board , position ) , position_is_powerup ( board , position ) , position_is_passage ( board , position ) ] ) , not position_is_enemy ( board , position , enemies ) ] )