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.
- 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
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
- For Ubuntu/Linux:
- Git: To clone the repository.
- For Ubuntu/Linux:
sudo apt-get install git
- For Windows/macOS: Download from here.
- For Ubuntu/Linux:
-
Clone the Repository
Clone the project from GitHub using the following command:
git clone https://github.com/maazrehman99/Super-Space-Game
-
Navigate to the Project Directory
Once cloned, navigate into the directory:
cd Super-Space-Game
-
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
. - Here,
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.
-
Starting the Game: Upon launching the game, you will be prompted to buy coins to unlock different games.
-
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.
-
Coin Management: Coins are deducted as you play. You can buy more coins if needed.
-
Game Modes: The project currently supports multiple games, which can be expanded easily.
- Game 1: Casino
- Game 2: Hangman
- Game 3: Rock, Paper, Scissors
You can add more games by following the project's modular structure.
If you want to contribute to this project:
- Fork the repository.
- Create a new branch for your feature or bugfix (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-name
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to modify and extend the project with more games and features.