def run(n, make_agent):
    print('     Current            New')
    print('location    status  action  location    status')
    for i in range(1, n):
        (location, status) = Sensors()
        print('{:12s}{:8s}'.format(location, status), end='')
        action = make_agent(Sensors())
        Actuators(action)
        (location, status) = Sensors()
        print('{:8s}{:12s}{:8s}'.format(action, location, status))
def run(n, make_agent):
    print('     Current            New')
    print('location    status  action  location    status')
    for i in range(1, n):
        (location, status) = Sensors()
        print('{:12s}{:8s}'.format(location, status), end=)
        action = make_agent(Sensors())
        Actuators(action)
        (location, status) = Sensors()
        print('{:8s}{:12s}{:8s}'.format(action, location, status))