Skip to main content

Module drill

Module drill 

Source
Expand description

The drills, and the typing engine that scores them.

Structs§

Drill
Rng
A small xorshift generator: plenty for shuffling drill words.

Enums§

Mode

Constants§

HINT_AFTER
How long a pause before the next key lights up on the map.
LEAN
How much more often a word with your worst key comes up than one without.

Functions§

build
leaning
The keys a words drill leans on, worst first: at most three, and only ones clearly behind the rest.
trouble
Keys that need more work than the stage’s middle key: slower, or missed more, scored from just above the middle (near 0) to the worst (1). Keys pressed fewer than five times aren’t judged yet.