A simple command-line typing game built in C++ using Object-Oriented Programming concepts. This project is great for beginners who recently learned about classes, vectors, constructors, and basic game loops.
- The game shows you a random word.
- You try to type it correctly.
- You get points for each correct word.
- Play through a set number of rounds and see your final score!
- Random word generation from a list
- Score tracking
- Beginner-friendly, minimal code
- Fully terminal-based, no external libraries
- C++
vector<string>for word listrand()andsrand()for random selection- Object-Oriented Programming (OOP)
-
Clone this repo (if on GitHub):
git clone https://github.com/your-username/typing-game.git cd typing-game -
Compile the code:
g++ -o typinggame typinggame.cpp
-
Run the game:
./typinggame
- Practice C++ Classes & Objects
- Use Vectors effectively
- Handle randomization in C++
- Build your first mini-game!
typinggame.cpp โ Main source code
README.md โ Project description and instructions
Feel free to fork and add features like:
- Timer for each round
- Word difficulty levels
- High score saving
- Multiplayer turn-based typing mode
Happy coding! ๐