code-typing-0.1.1 is not a library.
⌨️ Code Typing
A terminal-based typing game for Rust programmers. Practice typing real Rust code snippets to build muscle memory for Rust syntax and special characters.
Why Code Typing?
Traditional typing tests use regular English text, but Rust programming requires typing special characters like {}, =>, ::, |x|, <T>, and &mut. Code Typing bridges this gap:
- 🦀 Rust-focused — 50 curated Rust code snippets
- 🎯 Real patterns — algorithms, data structures, traits, iterators, and more
- ⚡ Real-time feedback — see correct/incorrect characters instantly
- 📊 WPM & accuracy tracking — measure your improvement over time
Installation
From crates.io
From source
Usage
That's it! Start typing the code you see on screen. The timer starts on your first keystroke.
Gameplay
| Visual | Meaning |
|---|---|
| 🟢 Green text | Correctly typed |
| 🔴 Red text | Incorrect |
| 🟡 Yellow cursor | Current position |
The progress bar shows completion. When finished, press Enter for a new snippet or Esc to quit.
Controls
| Key | Action |
|---|---|
Tab |
Insert 4-space indentation |
Backspace |
Delete last character |
Enter |
Next snippet (after completing) |
Esc |
Quit |
Code Samples Include
- Algorithms — QuickSort, Binary Search, DFS, BFS, Dijkstra
- Data Structures — Linked List, Binary Tree, Stack, Queue, HashMap
- Classic Problems — FizzBuzz, Two Sum, Valid Parentheses, Fibonacci
- Rust Patterns — Iterators, Closures, Traits, Generics, Error Handling
Requirements
- Rust 1.70+ (for installation)
- Terminal with Unicode support
- Works on macOS, Linux, and Windows
Tips for Improving
- Focus on accuracy first — Speed comes naturally with muscle memory
- Pay attention to special characters —
{},(),<>,::,=>are common in code - Practice indentation — Use Tab for consistent spacing
- Take breaks — Short, focused sessions are more effective
Contributing
Contributions welcome! Feel free to:
- Add more code samples
- Support other programming languages
- Improve the UI/UX
- Report bugs
License
MIT © Vincent Woo