Skip to content

yuss93/word-game-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

word-game-cpp

A C++ console-based adventure game with mini-games Word-Based Adventure Game is a console-based C++ game set in the mysterious Mansion of Destiny. The player wakes up in an eerie mansion and must complete a series of mini-games across 7 rooms to survive and escape. Each room presents a unique challenge, ranging from number guessing and riddles to puzzles and a boss battle.

This project demonstrates object-oriented design, user input validation, and multi-file C++ architecture — perfect for showcasing beginner-to-intermediate C++ skills.


🧩 Features

  • 7 interactive rooms with mini-games:
    • 🔢 Guess the Number
    • 🔠 Secret Word Guess
    • ➕ Solve a System of Equations
    • ✊🖐✌️ Rock-Paper-Scissors
    • 🐎 Horse Racing
    • 🧠 Puzzle / Riddle Challenge
    • 🧭 Maze Navigation + Boss Battle
  • Health-based survival system
  • ASCII art and dramatic game narration
  • Replay support after game over
  • Strong object-oriented structure

📁 Project Structure

File Description
main.cpp Entry point of the program
Game.cpp/hpp Manages game logic and room transitions
Room.cpp/hpp Contains all mini-games and room logic
Player.cpp/hpp Handles player health, inventory, and status

💻 How to Compile & Run (macOS / Linux)

✅ Requirements:

  • C++ compiler (g++)
  • Xcode Command Line Tools (macOS):
xcode-select --install

About

A C++ console-based adventure game with mini-games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages