Conway's Game of Life

Just finished my first implementation of Conway's Game of Life in C++.
Here is the link:
https://github.com/Turry99/Conway-Game-of-Life
Any sugestions?
Last edited on
No sugestions?
Any way I can improve it?
I was thinking of making it OOP but I don't think it will help that much.
in what direction do you want to improve it?
If I were you, I'd rewrite generate() in a way that separates the rules from the implementation, so that you could trivially add support for other 2D automata:
http://www.conwaylife.com/wiki/Seeds
http://www.conwaylife.com/wiki/Replicator_(CA)
http://www.conwaylife.com/wiki/Day_%26_Night
http://www.conwaylife.com/wiki/HighLife
etc

Another direction could be to separate the view from the model, so you could trivially support other UI
Last edited on
Thanks for the response.
I will separate the checking part and the rules for Game of Life and I will try to implement the other ones too.
I was thinking of making a window to select which "game" you want.
The only thing I don't get is the last part.
What do you mean exactly?
Topic archived. No new replies allowed.