❓ Problem Statement
Currently, high scores for terminal games (like Whack-a-Mole or Typing Speed Tester) are likely lost when the script exits, or they are saved in brittle flat .txt files (e.g., game_results.txt).
🚀 Proposed Enhancement
Implement a lightweight SQLite database wrapper to securely and reliably store user profiles, game statistics, and high scores across all terminal games.
��️ Suggested Implementation
- Create a utils/db_manager.py that initializes a local data.db file using the built-in sqlite3 module.
- Provide simple CRUD functions: save_score(game, user, score) and get_top_scores(game).
- Update the game scripts to query and display the top 5 high scores at the end of a session.
Additional Notes
❓ Problem Statement
Currently, high scores for terminal games (like Whack-a-Mole or Typing Speed Tester) are likely lost when the script exits, or they are saved in brittle flat .txt files (e.g., game_results.txt).
🚀 Proposed Enhancement
Implement a lightweight SQLite database wrapper to securely and reliably store user profiles, game statistics, and high scores across all terminal games.
��️ Suggested Implementation
Additional Notes