Jump to content

Guess the number/With feedback (player): Difference between revisions

Explain KEYBOARD reads and the behavior of the program
(Add Seed7 example)
(Explain KEYBOARD reads and the behavior of the program)
Line 1,580:
 
=={{header|Seed7}}==
The program reads the possible commands (l, h, c, q) as single keypresses from the
[http://seed7.sourceforge.net/libraries/keybd.htm#KEYBOARD KEYBOARD] with
[http://seed7.sourceforge.net/libraries/keybd.htm#getc%28in_console_keybd_file%29 getc].
It is also possible to quit the progrqm with q.
The program recognices also a situation when there is only one possible number left
and the command is not c.
 
<lang seed7>$ include "seed7_05.s7i";
$ include "keybd.s7i";
Cookies help us deliver our services. By using our services, you agree to our use of cookies.