game-of-life

How can you make Game of life in Excel?

I know only little how to make macros in Excel. ...

Drawing a grid in javascript ( game of life, for example )

Essentially, I had this idea in my head for a sort of evolution simulator, not exactly like Conways Game of Life, but the one part where they do match is that they will both be based on a square grid. Now, personally, I like working in HTML+Javascript+ for simple apps, since it allows fast UI creation, and if you're not doing something ...

Using game of life or other virtual environment for artificial (intelligence) life simulation?

One of my interests in AI focuses not so much on data but more on biologic computing. This includes neural networks, mapping the brain, cellular-automata, virtual life and environments. Described below is an exciting project that includes develop a virtual environment for bots to evolve in. "Polyworld is a cross-platform (Linux, Mac...

Multithreaded Java Program for Conway's game of life - contention at the border cells

I am learning concurrent programming in java, and writing a simulation for Game of Life. Here is what I am thinking: Use int[][] to store the states of the cells partition the int[][] into t segments and use t worker threads The t threads will read from their segment, calculate new values for all the cells in their segment and update ...

How to work with this turing machine?

This is a screenshot of the applet LogiCell 1.0, link to which I found here. As the bottom left corner shows, this is doing sum 0+1 and the result is 01b (bottom right hand side). I am not able to link what is displayed to what the inputs ans outputs are. For example in this case - seeing the snapshot, how do you determine that the i...

Implementing Conway's Game of Life in JavaScript with <canvas>

I've got some problems implementing Conway's Game of Life in JavaScript. At the German Wikipedia it says that this pattern here: Will create an empty world after 54 generations and the evolution looks like this: That means, the second generation looks like this: But when using my code, the second generation looks like this and t...

Can multithreading affect Conway's Game of Life clone?

Hi folks, I've been implementing this little game idea, which is (somehow?) similar to Conway's Game of Life: 0) You have a matrix of colored dots (RGB values) 1) If the adjacent cell has a lower X value than your Y, put Y = 0 on that cell (Where X and Y are Red || Green || Blue) 2) Red beats Green beats Blue beats Red What I'm d...

Game of life : how to have "entities" to evolve in parallel ?

Ok the title is not clear, here is what I mean. I am programming some kind of game (like the game of life). For example, there are animals (each animal is a Java instance of a class). All these animals are on a map, and all this "world" evolves each "turn". These animals can make actions at each turn. Example : a wolf kills a sheep. ...

Cellular Automata in Matlab

I'm currently self-teaching myself matlab, and I'm interested in cellular automata that was exhibited in old programs like Wolfram's Life1D and Conway's Game of Life from the early 1980s. Is there any available code that would produce Wolfram's Life1D in matlab in some form? I've searched online but have not found anything. Thanks. ...

Why is my C++ Game of Life not working properly?

This compiles and runs okay, but the results are totally different from what they should be. I've snipped irrelavent code: bool grid[1280][1024]; // hardcoded to my screen res for now for (int x = 0; x<1280; x++) //init grid to false { for (int y = 0; y<1024; y++) { grid[x][y] = false; } } grid[320][120] = tru...

Please help with my basic java implementation of Conway's game of life.

I have spent quite a while trying to write a program to implement Conway's game of life - [Link with more info.][1] . I am following some online guides and was given the majority of the functions. I wrote the "next" and "neighbours" methods shown below. Could anyone tell me if these are good implementations, and how they could be made b...