Re: my first application in euphoria: a simple hangman

new topic     » goto parent     » topic index » view thread      » older message » newer message
gbonvehi said...
kobi said...

hi all,
please see http://openeuphoria.org/pastey/117.wc

my first application in euphoria - all suggestions are welcomed!

  • library functions i should know about,

Hi Kobi,
I must say it's a very good code for being your first program, great work!
One function that you should use there is wait_key http://openeuphoria.org/docs/std_console.html#_942_wait_key , it stops execution until you press something so you can wait for input instead of refreshing constantly.

        keypress = wait_key()  
        -- You can remove the -1 check when using this :) 

Cheers,
Guillermo

What about maybe_any_key() ?

http://openeuphoria.org/docs/std_console.html#_953_maybe_any_key

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu