def scramble_holes(world, player):
    hole_entrances = [('Kakariko Well Cave', 'Kakariko Well Drop'), ('Bat Cave Cave', 'Bat Cave Drop'), ('North Fairy Cave', 'North Fairy Cave Drop'), ('Lost Woods Hideout Stump', 'Lost Woods Hideout Drop'), ('Lumberjack Tree Cave', 'Lumberjack Tree Tree'), ('Sanctuary', 'Sanctuary Grave')]
    hole_targets = [('Kakariko Well Exit', 'Kakariko Well (top)'), ('Bat Cave Exit', 'Bat Cave (right)'), ('North Fairy Cave Exit', 'North Fairy Cave'), ('Lost Woods Hideout Exit', 'Lost Woods Hideout (top)'), ('Lumberjack Tree Exit', 'Lumberjack Tree (top)')]
    if (not world.shuffle_ganon):
        connect_two_way(world, 'Pyramid Entrance', 'Pyramid Exit', player)
        connect_entrance(world, 'Pyramid Hole', 'Pyramid', player)
    else:
        hole_targets.append(('Pyramid Exit', 'Pyramid'))
    if (world.mode[player] == 'standard'):
        connect_two_way(world, 'Hyrule Castle Secret Entrance Stairs', 'Hyrule Castle Secret Entrance Exit', player)
        connect_entrance(world, 'Hyrule Castle Secret Entrance Drop', 'Hyrule Castle Secret Entrance', player)
    else:
        hole_entrances.append(('Hyrule Castle Secret Entrance Stairs', 'Hyrule Castle Secret Entrance Drop'))
        hole_targets.append(('Hyrule Castle Secret Entrance Exit', 'Hyrule Castle Secret Entrance'))
    if (world.shuffle[player] == 'crossed'):
        hole_targets.append(('Sanctuary Exit', 'Sewer Drop'))
    if world.shuffle_ganon:
        random.shuffle(hole_targets)
        (exit, target) = hole_targets.pop()
        connect_two_way(world, 'Pyramid Entrance', exit, player)
        connect_entrance(world, 'Pyramid Hole', target, player)
    if (world.shuffle[player] != 'crossed'):
        hole_targets.append(('Sanctuary Exit', 'Sewer Drop'))
    random.shuffle(hole_targets)
    for (entrance, drop) in hole_entrances:
        (exit, target) = hole_targets.pop()
        connect_two_way(world, entrance, exit, player)
        connect_entrance(world, drop, target, player)
def scramble_holes(world, player):
    hole_entrances = [('Kakariko Well Cave', 'Kakariko Well Drop'), ('Bat Cave Cave', 'Bat Cave Drop'), ('North Fairy Cave', 'North Fairy Cave Drop'), ('Lost Woods Hideout Stump', 'Lost Woods Hideout Drop'), ('Lumberjack Tree Cave', 'Lumberjack Tree Tree'), ('Sanctuary', 'Sanctuary Grave')]
    hole_targets = [('Kakariko Well Exit', 'Kakariko Well (top)'), ('Bat Cave Exit', 'Bat Cave (right)'), ('North Fairy Cave Exit', 'North Fairy Cave'), ('Lost Woods Hideout Exit', 'Lost Woods Hideout (top)'), ('Lumberjack Tree Exit', 'Lumberjack Tree (top)')]
    if (not world.shuffle_ganon):
        connect_two_way(world, 'Pyramid Entrance', 'Pyramid Exit', player)
        connect_entrance(world, 'Pyramid Hole', 'Pyramid', player)
    else:
        hole_targets.append(('Pyramid Exit', 'Pyramid'))
    if (world.mode[player] == 'standard'):
        connect_two_way(world, 'Hyrule Castle Secret Entrance Stairs', 'Hyrule Castle Secret Entrance Exit', player)
        connect_entrance(world, 'Hyrule Castle Secret Entrance Drop', 'Hyrule Castle Secret Entrance', player)
    else:
        hole_entrances.append(('Hyrule Castle Secret Entrance Stairs', 'Hyrule Castle Secret Entrance Drop'))
        hole_targets.append(('Hyrule Castle Secret Entrance Exit', 'Hyrule Castle Secret Entrance'))
    if (world.shuffle[player] == 'crossed'):
        hole_targets.append(('Sanctuary Exit', 'Sewer Drop'))
    if world.shuffle_ganon:
        random.shuffle(hole_targets)
        (exit, target) = hole_targets.pop()
        connect_two_way(world, 'Pyramid Entrance', exit, player)
        connect_entrance(world, 'Pyramid Hole', target, player)
    if (world.shuffle[player] != 'crossed'):
        hole_targets.append(('Sanctuary Exit', 'Sewer Drop'))
    random.shuffle(hole_targets)
    for (entrance, drop) in hole_entrances:
        (exit, target) = hole_targets.pop()
        connect_two_way(world, entrance, exit, player)
        connect_entrance(world, drop, target, player)