Skip to content

SulaimanNiazi/Silly-Cpp-If-Else-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Silly C++ If Else Games

This project contains a collection of silly if-else games written in C++. Each game presents a series of humorous and whimsical scenarios where the player makes choices that lead to different outcomes. The games are designed to be light-hearted and entertaining.

Project Structure

The project has the following structure:

.vscode/
    c_cpp_properties.json
    launch.json
    settings.json
Death by Black Hole.cpp
Hello code.cpp
Laundry code.cpp
output/
    Death by Black Hole.exe
    Hello-code.exe
    Laundry code.exe
    Samosa code.exe
Samosa code.cpp

Game Descriptions

  • Death by Black Hole: A space adventure where you navigate the perils of a black hole.
  • Hello Code: A social interaction game where you decide whether to say hello to someone you know.
  • Laundry Code: A game about deciding whether to do laundry based on various humorous criteria.
  • Samosa Code: A game about deciding whether you deserve to eat a samosa.

Getting Started

Prerequisites

  • GCC or any compatible C++ compiler
  • GDB for debugging (optional)
  • Visual Studio Code (recommended)

Building the Project

To build the project, you can use the provided configuration in the .vscode folder. Ensure you have the necessary compilers and tools installed as specified in the .vscode/settings.json and .vscode/c_cpp_properties.json files.

  1. Open the project in Visual Studio Code.
  2. Build the project using the build task:
    Ctrl+Shift+B

Running the Games

Each game can be run individually by executing the corresponding .exe file in the output directory. Alternatively, you can run the games from within Visual Studio Code using the provided launch configuration.

  1. Open the game file you want to run (e.g., Hello code.cpp).
  2. Start debugging by pressing F5 or by selecting Run > Start Debugging.

Debugging

The project includes a debug configuration for Visual Studio Code. To start a debug session:

  1. Open the game file you want to debug.
  2. Press F5 or go to Run > Start Debugging.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests with improvements or new games.

License

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

Acknowledgements

Special thanks to the creators of the silly scenarios and the inspiration behind these games:

  1. Kurzgesagt
  2. Other random internet flowchart creators.

Enjoy playing the silly if-else games!