mirror of
https://github.com/Llewellynvdm/game-of-life.git
synced 2024-06-08 09:40:46 +00:00
Add instructions for building and running the project
This commit is contained in:
parent
e11c826163
commit
8deadbcd23
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -34,3 +34,4 @@
|
||||||
# some locale folders
|
# some locale folders
|
||||||
cmake-build-debug
|
cmake-build-debug
|
||||||
.idea
|
.idea
|
||||||
|
build
|
||||||
|
|
38
README.md
38
README.md
|
@ -8,7 +8,43 @@ This is a demonstration in C++ of a game called [Game of life](https://en.wikipe
|
||||||
3. Any live cell with more than three live neighbours dies, as if by overpopulation.
|
3. Any live cell with more than three live neighbours dies, as if by overpopulation.
|
||||||
4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
|
4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
|
||||||
|
|
||||||
### License & Copyright
|
## Building and Running
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- CMake (Minimum Version 3.16)
|
||||||
|
- A C++ compiler (e.g., GCC, Clang)
|
||||||
|
|
||||||
|
### Building the Project
|
||||||
|
|
||||||
|
1. **Clone the repository**:
|
||||||
|
```bash
|
||||||
|
git clone https://git.vdm.dev/Llewellyn/game-of-life.git
|
||||||
|
```
|
||||||
|
2. **Navigate to the project directory**:
|
||||||
|
```bash
|
||||||
|
cd game-of-life
|
||||||
|
```
|
||||||
|
3. **Create and enter the build directory**:
|
||||||
|
```bash
|
||||||
|
mkdir build && cd build
|
||||||
|
```
|
||||||
|
4. **Generate build system files with CMake**:
|
||||||
|
```bash
|
||||||
|
cmake ..
|
||||||
|
```
|
||||||
|
5. **Compile the project**:
|
||||||
|
```bash
|
||||||
|
cmake --build .
|
||||||
|
```
|
||||||
|
|
||||||
|
6. **Running the Project**:
|
||||||
|
- After building, run the executable from the build directory.
|
||||||
|
```bash
|
||||||
|
./game-of-life
|
||||||
|
```
|
||||||
|
|
||||||
|
## License & Copyright
|
||||||
- Written by [Llewellyn van der Merwe](https://github.com/Llewellynvdm), April 2020
|
- Written by [Llewellyn van der Merwe](https://github.com/Llewellynvdm), April 2020
|
||||||
- Copyright (C) 2020. All Rights Reserved
|
- Copyright (C) 2020. All Rights Reserved
|
||||||
- License [GNU/GPL Version 2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
|
- License [GNU/GPL Version 2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user