]> git.cameronkatri.com Git - bsdgames-darwin.git/commit
cgram(6): use standard cursor keys, use standard shuffle algorithm
authorrillig <rillig@NetBSD.org>
Thu, 2 Jul 2020 19:11:01 +0000 (19:11 +0000)
committerrillig <rillig@NetBSD.org>
Thu, 2 Jul 2020 19:11:01 +0000 (19:11 +0000)
commitdf5cc7cf1cf61077ac0dcd2b376e61b3ed7fc388
tree45b25fd134ccee949cd9da6cf705cf9f2ee83b73
parente51dd5d1fb713d15515575d8a5a600a11434a186
cgram(6): use standard cursor keys, use standard shuffle algorithm

The previous shuffle algorithm asked for 100 random numbers, on average.
The new algorithm asks exactly for 26 random numbers.

Curses predefines numeric constants for keys, and there is no apparent
reason not to use these standard keys for cursor movement.
cgram/cgram.c