This commit is contained in:
2024-02-21 16:00:09 +01:00
parent ee2817afbb
commit cee71787f4
11 changed files with 51 additions and 9 deletions

View File

@ -1,10 +1,10 @@
hello|
set do random<1;128;> -> n|
set do random<1;128;> -> r|
set 0 -> guess|
until variable guess = variable n [
do [
set do input<'guess: ';> -> guess|
do print<'too high';> if variable guess > variable n|
do print<'too low';> if variable guess < variable n|
do print<'correct!';> if variable guess = variable n|
]|
do do print<'too high';> if variable guess > variable r|
do do print<'too low';> if variable guess < variable r|
do do print<'correct!';> if variable guess = variable r|
] until variable guess = variable r|
goodbye|