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.
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
- 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.
- GCC or any compatible C++ compiler
- GDB for debugging (optional)
- Visual Studio Code (recommended)
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.
- Open the project in Visual Studio Code.
- Build the project using the build task:
Ctrl+Shift+B
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.
- Open the game file you want to run (e.g.,
Hello code.cpp
). - Start debugging by pressing
F5
or by selectingRun > Start Debugging
.
The project includes a debug configuration for Visual Studio Code. To start a debug session:
- Open the game file you want to debug.
- Press
F5
or go toRun > Start Debugging
.
Contributions are welcome! Feel free to open issues or submit pull requests with improvements or new games.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the creators of the silly scenarios and the inspiration behind these games:
- Kurzgesagt
- Other random internet flowchart creators.
Enjoy playing the silly if-else games!