feat: added features, refactored code, updated readme
This commit is contained in:
20
README.md
20
README.md
@@ -8,8 +8,8 @@ A terminal-based morse code practice game built with Deno. Improve your morse co
|
||||
- 🟢 Easy: Single letters (A-Z)
|
||||
- 🟡 Medium: Letters + Numbers (A-Z, 0-9)
|
||||
- 🟣 Hard: Letters + Numbers + Punctuation (.,?!-/()@)
|
||||
- 🔵 Challenge: Common words
|
||||
- 🔴 Expert: Short phrases
|
||||
- 🔵 Challenge: Common words (from 275k+ English word dictionary)
|
||||
- 🔴 Expert: Random phrases (2-4 words generated from dictionary)
|
||||
|
||||
- **Interactive TUI Interface**
|
||||
- Beautiful terminal UI with colors and tables
|
||||
@@ -17,6 +17,7 @@ A terminal-based morse code practice game built with Deno. Improve your morse co
|
||||
- Dynamic time option for words/phrases (time scales with length)
|
||||
- Immediate feedback on answers
|
||||
- Progress tracking with streak counter
|
||||
- Detailed round-by-round results with translations
|
||||
|
||||
- **Statistics Tracking**
|
||||
- Overall accuracy and performance metrics
|
||||
@@ -24,12 +25,14 @@ A terminal-based morse code practice game built with Deno. Improve your morse co
|
||||
- Best streak tracking
|
||||
- Historical game data
|
||||
- Average time per round
|
||||
- Average time per character (for words/phrases)
|
||||
- Stats saved locally in project folder
|
||||
|
||||
- **Smart Feedback**
|
||||
- Immediate feedback on answers
|
||||
- Shows what your morse code translates to when incorrect
|
||||
- Helps you learn from mistakes
|
||||
- Detailed results table with translations for all rounds
|
||||
- Helps you learn from mistakes and track progress
|
||||
|
||||
- **Flexible CLI**
|
||||
- Interactive menu mode (default)
|
||||
@@ -104,17 +107,21 @@ deno task start reset
|
||||
- Letters only (A-Z)
|
||||
- Alphanumeric (A-Z, 0-9)
|
||||
- Full character set (letters, numbers, punctuation)
|
||||
- Words or phrases
|
||||
- Words (randomly selected from English dictionary, 3-8 letters)
|
||||
- Phrases (2-4 words randomly combined from dictionary)
|
||||
2. **Configure your game** - Set the number of rounds (5-50) and time per round (3-60 seconds)
|
||||
3. **Enable dynamic time (optional)** - For words/phrases, time can scale based on character count
|
||||
4. **Translate to morse code** - You'll be shown a challenge
|
||||
4. **Translate to morse code** - You'll be shown a challenge from real English words
|
||||
5. **Enter your answer** - Type the morse code using:
|
||||
- `.` (dot) for short signals
|
||||
- `-` (dash) for long signals
|
||||
- Space to separate letters
|
||||
- `/` to separate words
|
||||
6. **Get instant feedback** - See if you got it right and what your input translates to if wrong
|
||||
7. **Review your performance** - After all rounds, view detailed statistics
|
||||
7. **Review your performance** - After all rounds, view detailed statistics including:
|
||||
- Overall accuracy and time metrics
|
||||
- Average time per character (for words/phrases)
|
||||
- Complete results table showing what each morse input translates to
|
||||
|
||||
## Morse Code Basics
|
||||
|
||||
@@ -172,6 +179,7 @@ morse-game/
|
||||
- [@cliffy/table](https://jsr.io/@cliffy/table) - Table rendering
|
||||
- [@std/path](https://jsr.io/@std/path) - Path utilities
|
||||
- [@std/fs](https://jsr.io/@std/fs) - File system utilities
|
||||
- [an-array-of-english-words](https://www.npmjs.com/package/an-array-of-english-words) - English word dictionary (275k+ words)
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user