def f_monty_door(prize_door, guest_door, monty_door):
    if prize_door == guest_door:
        if prize_door == monty_door:
            return 0
        else:
            return 0.5
    elif prize_door == monty_door:
        return 0
    elif guest_door == monty_door:
        return 0
    return 1
dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/examples/factor_graphs/monty_hall_sampled.py/f_monty_door/original