Rock-paper-scissors: 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 2,447:
 
=={{header|Seed7}}==
The program reads the possible commands (1, 2, 3, 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 program with q.
<lang seed7>$ include "seed7_05.s7i";
$ include "keybd.s7i";