Skip to main content

Crate typocode

Crate typocode 

Source
Expand description

Core library for the TypoCode terminal typing game.

The binary in main.rs is a thin wrapper; integration tests and future embedders drive the app through these modules directly. Modules are added as the FR (functional requirement) that needs them lands.

Modulesยง

app
Top-level application state and run loop.
cli
Command-line argument parsing.
errors
Error and panic reporting.
file
Source-file loading.
logging
Tracing subscriber setup.
stats
Keystroke accuracy tracking.
text
Pure data model for the typing text.
timer
Elapsed-time tracking for the active typing run.
update
Input-to-state dispatch.
view
Top-level render composer.
widgets
Render primitives for the typing UI.