Anonymous user
Guess the number/With feedback (player): Difference between revisions
Guess the number/With feedback (player) (view source)
Revision as of 17:07, 13 April 2013
, 11 years agoExplain 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";
|