def walk(F, D, num_steps):
    """
    simulate one walk of D drunk in F field of num_steps steps.
    """
    init = F.getDrunkLoc(D)
    for _ in range(num_steps):
        F.moveDrunk(D)
    return init.distFrom(F.getDrunkLoc(D))