about summary refs log tree commit diff stats
path: root/lil/game.lil
blob: daffc5d5619bfd220e51a9b1007015c0a0a00152 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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