def simple_shuffle_dungeons(world, player):
    skull_woods_shuffle(world, player)
    dungeon_entrances = ['Eastern Palace', 'Tower of Hera', 'Thieves Town', 'Skull Woods Final Section', 'Palace of Darkness', 'Ice Palace', 'Misery Mire', 'Swamp Palace']
    dungeon_exits = ['Eastern Palace Exit', 'Tower of Hera Exit', 'Thieves Town Exit', 'Skull Woods Final Section Exit', 'Palace of Darkness Exit', 'Ice Palace Exit', 'Misery Mire Exit', 'Swamp Palace Exit']
    if (world.mode[player] != 'inverted'):
        if (not world.shuffle_ganon):
            connect_two_way(world, 'Ganons Tower', 'Ganons Tower Exit', player)
        else:
            dungeon_entrances.append('Ganons Tower')
            dungeon_exits.append('Ganons Tower Exit')
    else:
        dungeon_entrances.append('Inverted Agahnims Tower')
        dungeon_exits.append('Inverted Agahnims Tower Exit')
    connect_random(world, dungeon_entrances, dungeon_exits, player, True)
    multi_dungeons = ['Desert', 'Turtle Rock']
    if ((world.mode[player] == 'open') or ((world.mode[player] == 'inverted') and world.shuffle_ganon)):
        multi_dungeons.append('Hyrule Castle')
    random.shuffle(multi_dungeons)
    dp_target = multi_dungeons[0]
    tr_target = multi_dungeons[1]
    if ((world.mode[player] not in ['open', 'inverted']) or ((world.mode[player] == 'inverted') and (world.shuffle_ganon is False))):
        hc_target = 'Hyrule Castle'
    else:
        hc_target = multi_dungeons[2]
    if ((world.doorShuffle[player] != 'vanilla') and (hc_target == 'Turtle Rock')):
        swap_w_dp = random.choice([True, False])
        if swap_w_dp:
            (hc_target, dp_target) = (dp_target, hc_target)
        else:
            (hc_target, tr_target) = (tr_target, hc_target)
    if (world.mode[player] != 'inverted'):
        if (hc_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Agahnims Tower', 'Agahnims Tower Exit', player)
        elif (hc_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Agahnims Tower Exit', player)
        elif (hc_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Agahnims Tower Exit', player)
        if (dp_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Agahnims Tower', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Desert Palace Exit (North)', player)
        if (tr_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Agahnims Tower', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Turtle Rock Isolated Ledge Exit', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Turtle Rock Ledge Exit (East)', player)
    else:
        if (hc_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Inverted Ganons Tower', 'Inverted Ganons Tower Exit', player)
        elif (hc_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Inverted Ganons Tower Exit', player)
        elif (hc_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Inverted Ganons Tower Exit', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Hyrule Castle Exit (East)', player)
        if (dp_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Inverted Ganons Tower', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Desert Palace Exit (North)', player)
        if (tr_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Inverted Ganons Tower', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Turtle Rock Isolated Ledge Exit', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Turtle Rock Ledge Exit (East)', player)
def simple_shuffle_dungeons(world, player):
    skull_woods_shuffle(world, player)
    dungeon_entrances = ['Eastern Palace', 'Tower of Hera', 'Thieves Town', 'Skull Woods Final Section', 'Palace of Darkness', 'Ice Palace', 'Misery Mire', 'Swamp Palace']
    dungeon_exits = ['Eastern Palace Exit', 'Tower of Hera Exit', 'Thieves Town Exit', 'Skull Woods Final Section Exit', 'Palace of Darkness Exit', 'Ice Palace Exit', 'Misery Mire Exit', 'Swamp Palace Exit']
    if (world.mode[player] != 'inverted'):
        if (not world.shuffle_ganon):
            connect_two_way(world, 'Ganons Tower', 'Ganons Tower Exit', player)
        else:
            dungeon_entrances.append('Ganons Tower')
            dungeon_exits.append('Ganons Tower Exit')
    else:
        dungeon_entrances.append('Inverted Agahnims Tower')
        dungeon_exits.append('Inverted Agahnims Tower Exit')
    connect_random(world, dungeon_entrances, dungeon_exits, player, True)
    multi_dungeons = ['Desert', 'Turtle Rock']
    if ((world.mode[player] == 'open') or ((world.mode[player] == 'inverted') and world.shuffle_ganon)):
        multi_dungeons.append('Hyrule Castle')
    random.shuffle(multi_dungeons)
    dp_target = multi_dungeons[0]
    tr_target = multi_dungeons[1]
    if ((world.mode[player] not in ['open', 'inverted']) or ((world.mode[player] == 'inverted') and (world.shuffle_ganon is False))):
        hc_target = 'Hyrule Castle'
    else:
        hc_target = multi_dungeons[2]
    if ((world.doorShuffle[player] != 'vanilla') and (hc_target == 'Turtle Rock')):
        swap_w_dp = random.choice([True, False])
        if swap_w_dp:
            (hc_target, dp_target) = (dp_target, hc_target)
        else:
            (hc_target, tr_target) = (tr_target, hc_target)
    if (world.mode[player] != 'inverted'):
        if (hc_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Agahnims Tower', 'Agahnims Tower Exit', player)
        elif (hc_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Agahnims Tower Exit', player)
        elif (hc_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Agahnims Tower Exit', player)
        if (dp_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Agahnims Tower', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Desert Palace Exit (North)', player)
        if (tr_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Agahnims Tower', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Turtle Rock Isolated Ledge Exit', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Turtle Rock Ledge Exit (East)', player)
    else:
        if (hc_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Inverted Ganons Tower', 'Inverted Ganons Tower Exit', player)
        elif (hc_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Hyrule Castle Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Inverted Ganons Tower Exit', player)
        elif (hc_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Hyrule Castle Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Inverted Ganons Tower Exit', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Hyrule Castle Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Hyrule Castle Exit (East)', player)
        if (dp_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Inverted Ganons Tower', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Desert Palace Exit (North)', player)
        elif (dp_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Desert Palace Exit (South)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Desert Palace Exit (East)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Desert Palace Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Desert Palace Exit (North)', player)
        if (tr_target == 'Hyrule Castle'):
            connect_two_way(world, 'Hyrule Castle Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (East)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Hyrule Castle Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Inverted Ganons Tower', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Desert'):
            connect_two_way(world, 'Desert Palace Entrance (South)', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Desert Palace Entrance (North)', 'Turtle Rock Ledge Exit (East)', player)
            connect_two_way(world, 'Desert Palace Entrance (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Desert Palace Entrance (East)', 'Turtle Rock Isolated Ledge Exit', player)
        elif (tr_target == 'Turtle Rock'):
            connect_two_way(world, 'Turtle Rock', 'Turtle Rock Exit (Front)', player)
            connect_two_way(world, 'Turtle Rock Isolated Ledge Entrance', 'Turtle Rock Isolated Ledge Exit', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (West)', 'Turtle Rock Ledge Exit (West)', player)
            connect_two_way(world, 'Dark Death Mountain Ledge (East)', 'Turtle Rock Ledge Exit (East)', player)