From f79279fb25afa9a571f8e2d53cb49cf44b3e6ff0 Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 30 Apr 2023 20:41:11 -0400 Subject: &* --- lil/game.lil | 7 +++---- lil/giblang.lil | 7 +++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 lil/giblang.lil diff --git a/lil/game.lil b/lil/game.lil index daffc5d..b75c565 100644 --- a/lil/game.lil +++ b/lil/game.lil @@ -1,6 +1,4 @@ -active_game:1 - -on listner do +on ask_for do show["B(anana)"] show["A(pples)"] input["> "] @@ -18,8 +16,9 @@ on process x do end end +active_game:1 while active_game ~ 1 - user_input:listner[] + user_input:ask_for[] process[user_input] end \ No newline at end of file diff --git a/lil/giblang.lil b/lil/giblang.lil new file mode 100644 index 0000000..b2569f9 --- /dev/null +++ b/lil/giblang.lil @@ -0,0 +1,7 @@ +cons: ("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "z", "ch", "sh", "zh", "th") +vow: ("a", "e", "i", "o", "u", "y", "ee", "ai", "ae", "au") + +sys.seed:sys.ms + +syl:random[vow 1],random[cons 1] # 1 syllable +rand:random[(1,2,3) 1] # random number between 1 and 3, inclusive -- cgit 1.4.1-2-gfad0