Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akhand-pratap-tiwari/conway-game-of-life-using-cpp-and-sfml
An implementation of Conway's game of life using C++ and SFML.
https://github.com/akhand-pratap-tiwari/conway-game-of-life-using-cpp-and-sfml
conways-game-of-life cpp custom-headers sfml
Last synced: about 1 month ago
JSON representation
An implementation of Conway's game of life using C++ and SFML.
- Host: GitHub
- URL: https://github.com/akhand-pratap-tiwari/conway-game-of-life-using-cpp-and-sfml
- Owner: Akhand-Pratap-Tiwari
- Created: 2024-10-05T09:34:16.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T14:03:33.000Z (2 months ago)
- Last Synced: 2024-10-25T16:25:48.054Z (2 months ago)
- Topics: conways-game-of-life, cpp, custom-headers, sfml
- Language: C++
- Homepage:
- Size: 66.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About the project
This project displays Conway's game of life using C++ and SFML.![Screenshot 2024-10-24 193052](https://github.com/user-attachments/assets/3e803b63-6ef2-468a-a93b-f462491c3982)
![Screenshot 2024-10-24 193106](https://github.com/user-attachments/assets/b883e1e7-edf6-4740-bee0-7ace2fa3841e)
## Directory and Files:
- `.vscode` contains my vs code configuration. You might want to use your own.
- `release` contains all the dlls and main.exe required to run the program on a windows machine.
- Under this folder we have `main.exe`. Double click on this and run the game.
- All other are required dll files necessary to run the game and must be present in the same folder.
- `src` folder contains the active working directory.
- `custom_headers` contain the custom header files made for the project.
- `exec` contains the most recent executable along with dll and ilk and other stuff generated by the compiler.
- `obj` contains the intermediate object files that are generated by the compiler.
- `main.cpp` contains the main run code.
- `onion.py` is a small python script I wrote to automate my repetitive tasks. Following are the commands which can be run from cmd from the project root dir.
- `python onion.py make debug` : Compiles the code and puts the executable into `exec` and object files into `obj` folder
- `python onion.py make release` : Copies the recently compiled executable from exec into release folder. If executable does not exist then run the debug build then copies.
- `python onion.py run debug` : Runs the executable in the debug folder.
- `python onion.py run release` : Runs the executable in the release folder.
- `python onion.py pack debug` : Packs the src folder into a zip.
- `python onion.py pack release` : Packs the release folder into a zip.
- `release_pack.zip` is zipped version of release folder.
- `src_pack.zip` is zipped version of src folder.## Setup:
- Install the SFML library and edit the library path in the `.vscode` folder and in the `onion.py` script also.
- Install Visual Studio and C/C++ tools along with it.
- Install the C/C++ extension from Microsoft in VS Code.
- Run `Developer Command Prompt for the Visual Studio` for the `32-bit architecture`.
- Change the directory to the project directory.
- Run `code .` command.
- Now you are ready to work with the project.## Run Only:
To simply run the game just donwload the release pack, extract it and run the main.exe