summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'example.py')
-rw-r--r--example.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/example.py b/example.py
index 8a67c24..8eb0638 100644
--- a/example.py
+++ b/example.py
@@ -91,6 +91,21 @@ def move(steps):
}
"""
+@problem
+def my_problem():
+ return "The Scratch Sensor board is not connected. Foo."
+
+@reset
+def my_reset():
+ print("""
+ Reset! The red stop button has been clicked,
+ And now everything is how it was.
+ ...
+ (Poetry's not my strong point, you understand.)
+ """)
+
+
+
if __name__ == "__main__":
blockext.run("Fancy Spaceship", "spaceship", 1234)