Questions tagged [game-of-life]
A cellular automaton simulation following rules devised by mathematician John Conway.
212
questions
5
votes
2
answers
2k
views
Ruby implementation of Conway's Game of Life
I'm just starting with Ruby and decided to do two different implementations of Conway's Game of Life. In this first one I'm not using cells as a separate class and ...
3
votes
1
answer
261
views
Main implementation of Game of Life
This is my implementation of Conway's Game of Life in JavaScript. While I know that it runs slowly, I do not ask for performance improvements, but for a review on the code quality in general from ...
4
votes
1
answer
1k
views
Conway's Game of Life in F#
Since I'm learning F# along with functional programming, I managed to implement the rules for Conway's Game of Life. I'm not sure if I can improve some of its parts, though. For example, the ...
5
votes
3
answers
727
views
Critique my Clojure "Game of Life" code
I'm a Clojure n00b (but am experienced with other languages) and am learning the language as I find time - enjoying it so far, though the strange dreams and accidental use of parenthesis elsewhere (e....
4
votes
2
answers
511
views
C++ Vector memory management in Game of Life
I'm writing a simulator for Conway's Game of Life (http://en.wikipedia.org/wiki/Conway's_Game_of_Life) in C++ and I'm trying to make the code as idiomatic as possible.
The central object is a ...
4
votes
1
answer
1k
views
The game of life with a truly infinite board
The game of life is often implemented by representing the board as a 2D boolean array. This doesn't scale very well to larger boards -- it starts to consume lots of memory, and without some separate ...
5
votes
2
answers
3k
views
Garbage collection loop in Game of Life
I'm working on a Game Of Life clone as my first project. I'm still relatively new to programming, so my code is probably not really optimised.
The biggest bottleneck is in my ...
3
votes
1
answer
3k
views
Game Of Life rewritten into two classes, PetriDish and Cell
Follow-up to: Game Of Life implemented with for-loops and a boolean-array
As proposed by palacsint I went on and rewrote my implementation of the Game Of Life and extracted everything into two ...
2
votes
1
answer
3k
views
Game Of Life implemented with for-loops and a boolean-array
There's a Follow-up: Game Of Life rewritten into two classes, PetriDish and Cell
I wrote an implementation of the Game Of Life using the easiest approach, a bunch of loops and a boolean array. Yet I ...
6
votes
1
answer
755
views
Conway life game implementation with scala
I've tried to create optimal in terms of performance and memmory consumption. But also I've tried to make it functional and scala way. I want to get you comment on how to make it more 'scala'stic
<...
10
votes
1
answer
4k
views
11
votes
2
answers
2k
views
Game of Life in Haskell
I wondering what people think of this game of life. I don't think it is working properly, but I am interesting in what people think of the general design.
...