diff options
-rw-r--r-- | lil/game.lil | 7 | ||||
-rw-r--r-- | lil/giblang.lil | 7 |
2 files changed, 10 insertions, 4 deletions
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 |