17 lines
355 B
Python
17 lines
355 B
Python
import Robot
|
|
x=""
|
|
r=Robot.Robot()
|
|
t = r.Translation
|
|
rot = r.Rotation
|
|
while x!="q":
|
|
x=input('command: ')
|
|
if x=="rotation":
|
|
rot(10)
|
|
elif x=="droit":
|
|
t.droit(10)
|
|
elif x=="diagonal":
|
|
t.trv(10, True)
|
|
elif x=="side":
|
|
t.sd(10)
|
|
else:
|
|
print('available commands: rotation , droit , diagonal , side')
|