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