Ejemplo n.º 1
0
# -*- coding: utf-8 -*-


from z1 import p
from z5 import sense
from z8 import move2


motions = [1, 1]
measurements = ["red", 'green']


for measur, motion in zip(measurements, motions):
    p = move2(sense(p, measur), motion)
print(p)
Ejemplo n.º 2
0
def sense2(p, measurements):
    for m in measurements:
        p = sense(p, m)
    return p