about summary refs log tree commit diff stats
path: root/lil
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2023-04-30 19:13:48 -0400
committerelioat <elioat@tilde.institute>2023-04-30 19:13:48 -0400
commit3ff2ba5a46877b7956a75ce1fcece69632016d52 (patch)
tree0631319d6919919fecaf9f6b35cf7ebd2f63f740 /lil
parentc5d26c499634c280696eba1c985e00259732ffa2 (diff)
downloadtour-3ff2ba5a46877b7956a75ce1fcece69632016d52.tar.gz
*
Diffstat (limited to 'lil')
-rw-r--r--lil/game.lil25
1 files changed, 25 insertions, 0 deletions
diff --git a/lil/game.lil b/lil/game.lil
new file mode 100644
index 0000000..daffc5d
--- /dev/null
+++ b/lil/game.lil
@@ -0,0 +1,25 @@
+active_game:1
+
+on listner do 
+	show["B(anana)"]
+	show["A(pples)"]
+	input["> "]
+end
+
+on process x do
+	if x ~ "B"
+		show["You said B"]
+	elseif x ~ "A"
+		show["You said A"]
+	elseif x ~ "Q"
+		active_game:0
+	else 
+		show[x, "unknown input"]
+	end
+end
+
+
+while active_game ~ 1	
+	user_input:listner[]
+	process[user_input]
+end
\ No newline at end of file