about summary refs log blame commit diff stats
path: root/lil/game.lil
blob: b75c565d4fa0238e04f97720831d7999098751d9 (plain) (tree)
1
              
















                                        
             

                        
                            

                           
on ask_for 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

active_game:1

while active_game ~ 1	
	user_input:ask_for[]
	process[user_input]
end