Skip to content

angshumankishore/cpp_typinggame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🧠 Typing Game (C++ Command Line)

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.

🎮 How It Works

  • 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!

🛠 Features

  • Random word generation from a list
  • Score tracking
  • Beginner-friendly, minimal code
  • Fully terminal-based, no external libraries

🧱 Built Using

  • C++
  • vector<string> for word list
  • rand() and srand() for random selection
  • Object-Oriented Programming (OOP)

🔧 How to Run

  1. Clone this repo (if on GitHub):

    git clone https://github.com/your-username/typing-game.git
    cd typing-game
  2. Compile the code:

    g++ -o typinggame typinggame.cpp
  3. Run the game:

    ./typinggame

✨ Learning Objectives

  • Practice C++ Classes & Objects
  • Use Vectors effectively
  • Handle randomization in C++
  • Build your first mini-game!

📂 File Structure

typinggame.cpp   → Main source code
README.md        → Project description and instructions

🙌 Contribution

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! 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages