This project contains the classic Snakes and Ladders game.
The project has the following structure:
src/
Snakes and Ladders.cpp
output/
Snakes and Ladders.exe
- 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
The game can be run by executing its .exe
file in the output
directory. Alternatively, you can run the games from within Visual Studio Code using the provided launch configuration.
- Open the file you want to run (e.g.,
Snakes and Ladders.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.