Questions tagged [game-of-life]
A cellular automaton simulation following rules devised by mathematician John Conway.
224 questions
6 votes
1 answer
152 views
Creating random music covers using Conways Game of Life algorithm
(A sample cover art follows.) I'm currently working on replacing all the covers of my music files to have a unified theme, and I've started this project in Java to refresh my knowledge after a gap of ...
4 votes
2 answers
171 views
Game of life code in C++
Does my code for game of life look good enough? What changes can I make to optimize the code? I am a beginner to java and I've coded the Game of Life! For those not familiar, the game entails creating ...
12 votes
2 answers
2k views
Conway's Game of Life Terminal Visualization in C
I'm currently learning C, and decided to practice what I've been working on with a project, namely implementing Conway's Game of Life as a terminal visualization. This is my first project in C. The ...
2 votes
1 answer
124 views
Conway's Game of Life In C++17
I implemented Conway's Game of Life in C++17. To make it easy to copy paste. I have merged my .h and ...
4 votes
2 answers
138 views
implementation of Conway's game of life in C for ansi terminals
I've been learning C for some quite time now and wanted to test my skills by implementing the game of life in C. Please give me a general review, and include the style. Is code like that of function ...
1 vote
1 answer
164 views
Algorithm for Conway's Game of Life in potentially infinite grid in Python
I implemented a program for computing Conway's Game of Life iterations in Python starting from an initial grid configuration given as input. It is intended to handle arbitrarily large grids. I tried ...
2 votes
1 answer
174 views
Parallelization of the tick function in a Game of Life simulation using Rust and Python (+ NumPy)
I've been writing a small Rust module recently with the sole purpose of speeding up my Python program, which is a Conway's Game of Life simulation. The function written in Rust is called from Python ...
8 votes
2 answers
388 views
Reverse Game of Life
I have written code to take a cellular automaton configuration and determine a state that could have existed one time-step prior, according to Game of Life rules. The algorithm goes roughly as follows:...
2 votes
1 answer
124 views
Game of life(random generation, pygame)
I recently created game about life in python. First version of code was console, but recently I rewrote this game in pygame. I decied upgrade game and was added age of cells. But now I can see that my ...
6 votes
2 answers
2k views
Game of life(random generation)
I wrote a simple game using python, but I wonder: how I can improve it? Any opinions will be useful. I thought about optimization, since the program consumes 20% processor resources, but don't know ...
4 votes
2 answers
330 views
Multithreaded Conway's Game of Life implementation written in C and Java using JNI
I had some multithreading C programming experience from school last year but I wanted a bit more so I tried to program a Conway's Game of Life implementation from scratch. Code is mainly written in C ...
4 votes
1 answer
206 views
An implementation of Conway's Game of Life using C++ and SFML
I recently started learning C++ again, and I wrote a simple version of Conway's Game of Life. This version doesn't use 2 buffers to transfer changes over to the main view. Instead, it uses a stack of ...
7 votes
1 answer
730 views
John Conway's Game of Life in C++
I have created Game of Life in C++ SFML. The code works just fine. However since I am not used to working with C++, I implemented a lot of stuff the way I would in python (for example I have not used ...
8 votes
3 answers
473 views
Optimise Game of Life in Rust
I recently picked up Rust and was making a CLI for Conway's Game of Life. I got it working but, looking back at it, there are places it could be improved. The main one is the function that generates ...
3 votes
2 answers
184 views
Game of life with options like windows and board size
Mainly I am looking for a better way to control the user input in the game loop which is in the first file. Since the nested switch with many ...