summaryrefslogtreecommitdiff
path: root/examples/or.qua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/or.qua')
-rw-r--r--examples/or.qua17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/or.qua b/examples/or.qua
new file mode 100644
index 0000000..162fe04
--- /dev/null
+++ b/examples/or.qua
@@ -0,0 +1,17 @@
+x y speedX speedY color
+0 2 0 0 !examples/not.qua
+1 0 0 0 GA
+6 0 0 0 GA
+6 -1 0 0 GA
+5 -1 0 0 GA
+5 2 0 0 !examples/not.qua
+1 4 0 0 GA
+7 4 0 0 YE
+# OR
+# Inputs: 0, 0
+# 1, 0
+# Output: 6, 4
+# Time: 23
+# Notes:
+# The left input can come in a while before the right input, but not
+# vice versa. \ No newline at end of file