Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Mind Guessing Game Plus

An interactive console-based C++ game that uses a mathematical trick to guess the number a user is thinking of. Built using Object-Oriented Programming (OOP) concepts, this project demonstrates user interaction, logic building, and console UI enhancements.

๐Ÿš€ Features

  • Interactive step-by-step gameplay
  • Uses mathematical logic to predict final number
  • Colored console UI (Windows API)
  • Slow typing effect for better user experience
  • Prize system based on result
  • Score tracking system

๐Ÿง  Concepts Used

  • Inheritance (Base class Game, Derived class MindGame)
  • Polymorphism (Virtual function run())
  • Encapsulation (Protected & private members)
  • Random number generation
  • User input handling

๐ŸŽฎ How It Works

  1. User thinks of a number (1โ€“9)
  2. Performs simple operations guided by the program
  3. Program predicts the final number using logic
  4. User gets a prize based on result

๐Ÿ› ๏ธ Technologies

  • C++
  • Windows.h (for colors & effects)
  • conio.h (for key input)

โ–ถ๏ธ How to Run

g++ main.cpp -o game
./game
*********************************************************
๐Ÿ“Œ Note
This project runs on Windows due to use of windows.h and conio.h
๐Ÿ‘ค Author

Muhammad Mustafa

About

Mind Guessing Game +

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages