Questions tagged [game-of-life]
A cellular automaton simulation following rules devised by mathematician John Conway.
212
questions
3
votes
2
answers
1k
views
One-dimensional circular Conway's Game of Life
I have a program that is working, but it takes way too long to get the answer. With input like
15 100000000
111010111001100
The program checks for 15 numbers, ...
4
votes
3
answers
5k
views
Game of Life (Java)
This is a simple implementation of Conway's Game of Life in Java. The algorithm I use is inefficient however. Every Cell's neighbors (alive or dead) are checked on every iteration.
...
7
votes
5
answers
535
views
Conway's Game of Life and Other Lifelike Cellular Automata Rules
This simulator visualizes Conway's Game of Life and other lifelike cellular automata rule-sets.
Features:
You can choose from any of the preselected birth/survival thresholds or specify custom ...
2
votes
0
answers
819
views
Conways game of life with turtle python 3
A version of CGOL made in Python using the turtle module.
Any suggestions for optimisations or improvement:
...
6
votes
2
answers
1k
views
Parse Run Length Encoded file for cellular automaton data
I wanted to be able to parse Run Length Encoded (*.rle) files into something usable for a cellular automaton simulator (e.g. Conway's Game of Life and such).
Here ...
5
votes
2
answers
413
views
20×20 Game of Life in C
I am new to C, but have experience with Python and R. The following code implements the Game of Life and represents my first finger exercise in C. I would like to have some feedback regarding the ...
1
vote
0
answers
241
views
Java Console version of Conway's Game of Life
This is another out-of-the-head-and-into-the-compiler exercise. This was straight from the editor to code review. I would like suggestions on things to keep in mind when doing such exercises.
...
3
votes
2
answers
1k
views
Java console version Conway's Game of Life
I did a super simple version of Conway's Game of Life and would like a review.
...
5
votes
1
answer
165
views
Game of Life Kata in Bash
I've implemented a Game of Life Kata with the aim to get to know Consul's K/V store. Although not the main purpose of the exercise, it would be nice if somebody reviewed some of the bash code in the ...
5
votes
2
answers
277
views
Game of Life, a shorter story
I've been glancing at Game of Life for quite a while, but been reluctant towards graphical packages like pygame. But today I finally got over myself and did it.
Did you know that there the "problem" ...
8
votes
1
answer
1k
views
Conway's Game of Life python
It's my implementation. Can I get some opinions on it?
...
6
votes
1
answer
150
views
Game of Life implementation is too slow
I was tasked with implementing Conway's Game of Life. It seems to work fine but the implementation is lacking as I find that it takes a long time to generate the next generation of the grid. I'm ...
2
votes
1
answer
7k
views
Game of life in C
Game of life is the simplest example of zero player game for cellular automata and it was proposed by mathematician John Conway. I have tried to re implement Nicolas P. Rougier's tutorial for python ...
14
votes
4
answers
12k
views
'Game of Life' in C#
Unrelated to code:
I have only been programming for three weeks, and this is my first project.
About the code:
Uses a preset grid.
It was all done on a single page. This, I realise, was a mistake, ...
8
votes
1
answer
431
views
Grid displayer: Game of Life and Langton's Ant
Re-use
Given that both the Langton's Ant and the Game of Life use a grid, I decided to code a generic grid_diplayer code and use it both for GoL (Game of Life) and ...
5
votes
2
answers
538
views
Functional Conway's Game of Life in JavaScript
In this code, I tried to integrate my little knowledge of (and great fascination towards) functional programming. I'd like to make this code more functional, and faster, if that's possible.
...
3
votes
1
answer
2k
views
Game of Life - Basic Java GUI Implementation
I've been working on a basic implementation of Conway's Game of Life over the last day, and I've just finished a 'playable' version.
If anyone has the time, would you mind making any suggestions on ...
4
votes
1
answer
2k
views
My version of Conway's Game of Life in Java
I am currently only doing one generation. I'd like a review of my code.
Game of Life: The universe of the Game of Life is an infinite
two-dimensional orthogonal grid of square cells, each of ...
8
votes
1
answer
354
views
Game of Life in Scala with a sparse representation
While reviewing another Scala implementation of the Game of Life, I ended up drastically rewriting it. The board is represented as a Set[(Int, Int)] containing the ...
6
votes
1
answer
575
views
Conway's Game of Life in Scala
To learn Scala, coming from Java and Python, I'm attempting to program an implementation of Conway's Game of Life.
I've implemented two different approaches so far, with the first being so bad I'm ...
4
votes
1
answer
2k
views
Conway's Game Of Life in C#
In the C# Player's Guide book, one of the challenges was to make the game Game of Life in the console.
Program.cs
...
9
votes
1
answer
1k
views
Conway's game of life in C++ with SDL
This is my attempt at a basic implementation of GOL. The user can add and remove cells with the mouse and some basic stats are printed to console. Any feedback is welcome, but I have a couple of ...
2
votes
1
answer
338
views
Conway's Game of Life Java Implementation
Keep state the same if it doesn't fall in the following conditions:
Change to 2 if there are exactly 2 ones in the neighbors
Change to 3 if there are more than 2 ones in the neighbors
It is also ...
4
votes
1
answer
2k
views
Beginner's pygame Conway's Game of Life
Here's my implementation of Game of Life. I'm quite new to Python and would like to know how could I improve that code, especially in terms of performance, compactness and readability.
...
4
votes
1
answer
101
views
Building blocks of Life
I'm learning Clojure, and decided to write a Conway's Game of Life clone as my starting project. I ended up dicking around for a bit before diving in, and came up with a few functions that I'd like ...
10
votes
1
answer
35k
views
Simple Conway's Game of Life implementation in Java
I wrote a simple implementation of Conway's Game of Life in Java using 2 arrays and for loop and used StdDraw library for plotting generations.
It turned out that ...
4
votes
1
answer
353
views
Conway's Game of Life in Python, saving to an image
I have attempted to make conways game of life in Python, and then save the output into a picture.
Is there any way to make this more efficient?
Is there anything wrong with the logic? (Most of the ...
14
votes
2
answers
361
views
Conway's Game of Life in J
I have the following code which produces successive generations of Conway's Game of Life:
...
3
votes
1
answer
1k
views
Conway's Game Of Life in Java
I've written a simple demo for Conway's Game Of Life for self-practice.
How can I improve the code, especially the processLife() method which traverses and updates ...
5
votes
2
answers
536
views
The Game of Life that scored 100%
Note: this is from a COMPLETED course. This is not a ploy to get help with homework, as I have already received a 100% on this assignment (last year). I just want to become a neater programmer. Can ...
6
votes
1
answer
206
views
Easy Game of Life project
I've developed easy Game of Life project. I'd highly appreciate any feedback and possibilities to improve my code, both in efficiency and style. It works on list and it's terminal program.
ICell.java
...
3
votes
0
answers
186
views
Conways Game of Life using unordered set of coordinates
Previously I had been using an array of bool(dead/live) to represent cells. I looked on code review to see how other people have implemented Conway's Game of Life. Someone in the comments of a post ...
8
votes
4
answers
1k
views
Python Implementation - Conway's Game of Life
This is my implementation of Conway's Game of Life in Python. Now since I am a novice coder, naturally I have some key doubts:
The usage of idioms and code redundancies - Are there any small ...
2
votes
1
answer
166
views
Attempt at Conway's Game of life
I tried my hands of Conway's Game of life. Well it works as I wanted it to but I want to improve my design and coding practice. I will be glad to get feedback and ideas to improve it and how to code ...
3
votes
1
answer
94
views
Game of Life search program for Herschel-generating baits
Golly is a cross-platform, Python and Perl extendable (like in this case, Python), free Conway's Game of Life simulator written in C++ (or Python) that runs in arbitrary speed and large, marvelous ...
28
votes
2
answers
945
views
Life is a Game - Play it
I haven't made a game in Excel yet, so I decided to Make Conway's Game of Life.
If you wish to play along, I've uploaded the workbook here.
Right now it's very rudimentary (No user interface, no ...
7
votes
2
answers
320
views
Simulation to find max population of R-pentominos in Game of Life
I'm brand new to Python and I feel my code is really like what coded in Java.
I try to practice python by small problem and that is to find the maximum population of R-pentomino. Wiki says:
...
7
votes
1
answer
1k
views
JavaScript implementation of Conway's Game of Life
It took some time to make Conway's Game of Life in HTML, CSS, JavaScript and jQuery. I'd like suggestions, criticisms, and discussions on how it can be done better.
JSFiddle link
...
4
votes
1
answer
726
views
Conway's Game of Life
Inspired by this post, I decided to try to implement my own Conway's Game of Life.
I started with a non-warping board:
...
7
votes
1
answer
809
views
Game of Life rules in 14 lines of Python
I've attempted a functional solution to Conway's Game of Life in Python.
The example code allows you to see the next generation of the universe by calling the ...
2
votes
0
answers
681
views
Node JS Beginner's CLI Game of Life
I have finished writing my first Node.js app: a CLI app that runs Conway's Game of Life. I am looking for feedback on things that might not have been done the "Node.js way" and what I can do to better ...
5
votes
1
answer
513
views
Game of Life in Python 2.7.10
Conway's Game of Life is a common problem. I had to write a version of it to get my current C# job, so I thought it would be a nice way to get into Python (especially as the example in the book are a ...
3
votes
1
answer
182
views
Another Conway's Game of Life in Haskell
Curious what people think about this implementation of Conway's Game of Life in Haskell.
...
4
votes
1
answer
616
views
Simple Game Of Life with infinite size
I decided to try make a version of the Game Of Life that'd be infinitely big. The idea was to store a dictionary of each Y value, which contain a set of X values (for fast lookup), as opposed to ...
35
votes
1
answer
4k
views
Full-color clone of Conway's Game of Life, with a decent GUI
I wrote this to learn JavaFX, and as an excuse to re-make the Game of Life. This is the most complex GUI I've ever written, so I'd like feedback mainly on it, but I'll welcome any criticism!
My ...
12
votes
1
answer
297
views
Generalized 2D cellular automata simulator
This is a simple Game of Life implementation, with one neat gimmick: You can specify the rules that the simulator uses to decide whether cells should live or die. Congrats, God!
I'd especially like ...
6
votes
1
answer
906
views
Game of life in F#
First attempt at doing anything F#-y from a very heavy C# background, think I've grasped the fundamentals of FP, but always good to get other eyes on it:
...
5
votes
1
answer
1k
views
Attempt on Conway's "Game of Life"
This is my attempt on the Conway's "Game of Life" using C++. The code is functional but I am sure most aspects of the code might have been poorly constructed as I am fairly new at this. Please give ...
3
votes
2
answers
2k
views
Counting Neighbors (Why scipy.signal.convolve2D so fast?)
Here is my Python implementation of counting neighbours of Game of Life with radius as parameter.
...
8
votes
2
answers
3k
views
Graphics in Conway's Game of Life in Java
I recently coded a program to stimulate Conway's Game of Life. Originally, my program just printed an array of 1's and 0's where the 1's represented the "live" cells, but I tried to teach myself some ...