Questions tagged [game-of-life]

A cellular automaton simulation following rules devised by mathematician John Conway.

Filter by
Sorted by
Tagged with
8
votes
1answer
813 views

First Java program critique (Game of Life)

As a school project in my navigator 12 class, I've decided to try and learn Java. I thought that I'd try and make the Game of Life, because it would be a good way to start learning Java (watched a ...
4
votes
2answers
563 views

Game Of Life OOP Python

This is pretty much an OOP version of this question, with the improvements: ...
4
votes
2answers
3k views

Python - Game Of Life

Here is my implementation of John Conway's Game of Life in Python: ...
6
votes
2answers
1k views

Game of Life implementation ran in the terminal

I have been teaching myself programming, mainly in Java, for about 6 months. I'm looking for some feedback on this implementation of the Game of Life, which runs entirely in the terminal. ...
3
votes
1answer
723 views

Cleaning up code for Conway's Game of Life

I've implemented a Ruby version of Conway's Game of Life that functions correctly and passes all my tests. I was hoping to get some advice on how I could clean up the code for readability and ...
4
votes
2answers
300 views

General feedback on Conway's Game of Life implementation

I've just written an implementation of Conway's Game of Life as an exercise and I'd love to get some feedback on how I can improve this program and hopefully my style in general. I've tested the code ...
6
votes
1answer
1k views

Game of Life, separation of logic / GUI

This is one of my first steps with GUI. I've tried an implementation of Conway's Game of Life with TkInter. I would appreciate any opinions about my code, especially about the separation of GUI and ...
4
votes
1answer
976 views

Conway's game of life - Optimizing the code

I have just finished my first iteration of conway's game of life as a codeing excercise. I have little experience with coding, so I think my code could use some refactoring. What i am curios about is ...
2
votes
3answers
2k views

Game Of Life 3 in Java

I have this version of John Conway's Game Of Life in Java: Frame class: ...
4
votes
1answer
610 views

Game of Life Animation Java

I have this Board class: ...
12
votes
1answer
25k views

Game of Life in Java

I wrote John Conway's Game of Life in Java: ...
2
votes
1answer
455 views

Ruby Game of Life with matrices

A little while ago I wrote this implementation of Conway's Game of Life in Ruby. It's based on this Game of Life in APL video, which I think is rather elegant, though a bit dense. Feel free to give ...
4
votes
3answers
3k views

Game of Life in Python

I have this interpretation of John Conway's Game of Life in Python 3.3.1: ...
4
votes
2answers
1k 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
1answer
255 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
1answer
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
3answers
632 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
2answers
450 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 ...
3
votes
1answer
944 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 ...
6
votes
2answers
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
1answer
2k 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
1answer
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
1answer
672 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
1answer
3k views

Python implementation of a wrapped Conway's Game Of Life board

...
11
votes
2answers
1k 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. ...