diff options
Diffstat (limited to 'pynxc/tutorial_samples/3_random.py')
-rw-r--r-- | pynxc/tutorial_samples/3_random.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/3_random.py b/pynxc/tutorial_samples/3_random.py new file mode 100644 index 0000000..9a5b9a0 --- /dev/null +++ b/pynxc/tutorial_samples/3_random.py @@ -0,0 +1,9 @@ +def main(): + + while True: + move_time = Random(600) # default type is an integer + turn_time = Random(400) + OnFwd(OUT_AC, 75) + Wait(move_time) + OnRev(OUT_A, 75) + Wait(turn_time) |