Skip to content

Commit 8b9f209

Browse files
2 parents f511e2f + e64c1a8 commit 8b9f209

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## About the project
2+
This project displays Conway's game of life using C++ and SFML.
3+
4+
![Screenshot 2024-10-24 193052](https://github.com/user-attachments/assets/3e803b63-6ef2-468a-a93b-f462491c3982)
5+
6+
![Screenshot 2024-10-24 193106](https://github.com/user-attachments/assets/b883e1e7-edf6-4740-bee0-7ace2fa3841e)
7+
8+
## Directory and Files:
9+
- `.vscode` contains my vs code configuration. You might want to use your own.
10+
- `release` contains all the dlls and main.exe required to run the program on a windows machine.
11+
- Under this folder we have `main.exe`. Double click on this and run the game.
12+
- All other are required dll files necessary to run the game and must be present in the same folder.
13+
- `src` folder contains the active working directory.
14+
- `custom_headers` contain the custom header files made for the project.
15+
- `exec` contains the most recent executable along with dll and ilk and other stuff generated by the compiler.
16+
- `obj` contains the intermediate object files that are generated by the compiler.
17+
- `main.cpp` contains the main run code.
18+
- `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.
19+
- `python onion.py make debug` : Compiles the code and puts the executable into `exec` and object files into `obj` folder
20+
- `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.
21+
- `python onion.py run debug` : Runs the executable in the debug folder.
22+
- `python onion.py run release` : Runs the executable in the release folder.
23+
- `python onion.py pack debug` : Packs the src folder into a zip.
24+
- `python onion.py pack release` : Packs the release folder into a zip.
25+
- `release_pack.zip` is zipped version of release folder.
26+
- `src_pack.zip` is zipped version of src folder.
27+
28+
## Setup:
29+
- Install the SFML library and edit the library path in the `.vscode` folder and in the `onion.py` script also.
30+
- Install Visual Studio and C/C++ tools along with it.
31+
- Install the C/C++ extension from Microsoft in VS Code.
32+
- Run `Developer Command Prompt for the Visual Studio` for the `32-bit architecture`.
33+
- Change the directory to the project directory.
34+
- Run `code .` command.
35+
- Now you are ready to work with the project.
36+
37+
## Run Only:
38+
To simply run the game just donwload the release pack, extract it and run the main.exe

0 commit comments

Comments
 (0)