https://github.com/elucidation/conwaylifecpp
Basic Conway's Life implementation in C++
https://github.com/elucidation/conwaylifecpp
Last synced: about 1 year ago
JSON representation
Basic Conway's Life implementation in C++
- Host: GitHub
- URL: https://github.com/elucidation/conwaylifecpp
- Owner: Elucidation
- Created: 2012-09-23T10:10:10.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-09-24T08:44:06.000Z (over 13 years ago)
- Last Synced: 2025-02-10T00:17:02.060Z (over 1 year ago)
- Language: C++
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Simple C++ implementation of [Conway's Game of Life](http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life).

Basic Usage
---
Run `life.exe`
Defaults to 32x32 boards for 100 turns with visuals on.
For more control pass arguments via `life.exe SIZE TURNS VISUAL?`
* 2D board size is NxN where N = SIZE
* TURNS is the number of turns to step through
* VISUAL? is whether to show visuals or not, can be 'v' for yes or anything else for no
Branches
---
Master branch uses a dynamically allocated 2D array, every cell in array is checked.
unordered_map branch holds a hash map of all cells followed (living and neighbors thereof), and only checks those.