Skip to content

This is a terminal-based game built using C, where users can play multiple games after purchasing coins. Players can use coins to unlock various game modes and challenges. It's a simple, fun, and interactive project designed to enhance programming skills in C while providing an enjoyable experience for users.

License

Notifications You must be signed in to change notification settings

maazrehman99/Super-Space-Game

Repository files navigation

Multi-Game Terminal Application

This project is a collection of terminal-based games written in C, where players can buy coins to unlock and play different games. The system is built with a simple user interface, designed for ease of use and enjoyment.

Features

  • Multiple games available to play after purchasing coins
  • Simple and interactive terminal-based interface
  • Modular structure for adding more games easily
  • Built with C programming language for performance and portability

Table of Contents

  1. Prerequisites
  2. Installation
  3. How to Run
  4. Gameplay
  5. Contributing
  6. License

Prerequisites

Before running the game, ensure you have the following installed on your system:

  • GCC Compiler: Used for compiling C code. You can install it via:
    • For Ubuntu/Linux:
      sudo apt-get install build-essential
    • For Windows: You can use MinGW. Follow this guide to install.
    • For macOS:
      xcode-select --install
  • Git: To clone the repository.
    • For Ubuntu/Linux:
      sudo apt-get install git
    • For Windows/macOS: Download from here.

Installation

  1. Clone the Repository

    Clone the project from GitHub using the following command:

    git clone https://github.com/maazrehman99/Super-Space-Game
  2. Navigate to the Project Directory

    Once cloned, navigate into the directory:

    cd Super-Space-Game
  3. Compile the Code

    Use the gcc compiler to compile the C source files into an executable. You can run the following command:

    gcc -o game superspace.c
    • Here, superspace.c is your entry point.

    This will generate an executable file named game.

How to Run

After compiling the project, run the generated executable by entering the following command:

./game

The game will launch, and you'll be guided through the coin purchase and game selection process in the terminal.

Gameplay

  1. Starting the Game: Upon launching the game, you will be prompted to buy coins to unlock different games.

  2. Game Selection: Once you have coins, you can choose from the available games by typing the number corresponding to the game you want to play.

  3. Coin Management: Coins are deducted as you play. You can buy more coins if needed.

  4. Game Modes: The project currently supports multiple games, which can be expanded easily.

Example Games:

  • Game 1: Casino
  • Game 2: Hangman
  • Game 3: Rock, Paper, Scissors

You can add more games by following the project's modular structure.

Contributing

If you want to contribute to this project:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-name).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Enjoy the Game! 🎮

Feel free to modify and extend the project with more games and features.

About

This is a terminal-based game built using C, where users can play multiple games after purchasing coins. Players can use coins to unlock various game modes and challenges. It's a simple, fun, and interactive project designed to enhance programming skills in C while providing an enjoyable experience for users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages