summaryrefslogtreecommitdiff
path: root/examples/or.qua
diff options
context:
space:
mode:
authorLeo Tenenbaum <leonardomtenenbaum@gmail.com>2018-03-23 00:00:50 -0400
committerLeo Tenenbaum <leonardomtenenbaum@gmail.com>2018-03-23 00:00:50 -0400
commit5e54af301b2b99e8479da3195ef30d0f8ec19227 (patch)
tree0647a605126d94cc914345c587512cf7a9b59dc3 /examples/or.qua
parentbedd7a371cc4649b95dc09bafa1c7ee23a4affb6 (diff)
Initial commit
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