summaryrefslogtreecommitdiff
path: root/examples/and.qua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/and.qua')
-rw-r--r--examples/and.qua11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/and.qua b/examples/and.qua
new file mode 100644
index 0000000..5bc9914
--- /dev/null
+++ b/examples/and.qua
@@ -0,0 +1,11 @@
+x y speedX speedY color
+0 1 0 0 YE
+1 1 0 0 GA
+2 1 0 0 GA
+2 0 0 0 GA
+-1 0 0 0 GA
+-1 3 0 0 !examples/not.qua
+# AND - Input: 0, 0 speed 0, 1
+# 1, 0 speed 0, 1
+# Output: 0, 3
+# Time: 20 \ No newline at end of file