Questions tagged [cellular-automata]

A cellular automaton is a discrete model studied in computability theory.

By wikipedia,

A cellular automaton is a discrete model studied in computability theory, mathematics, physics, complexity science, theoretical biology and microstructure modeling.

A cellular automaton consists of a regular grid of cells, each in one of a finite number of states, such as on and off (in contrast to a coupled map lattice)

225 questions
-1
votes
2 answers

Game of Life in Processing

I want to code my own version of "game of life", in processing 3, but I've come across an error I don't seem to understand. Whenever the code run, the screen keeps going black and white with a few pixels changing but it does not look like game of…
-1
votes
1 answer

Valid Previous Positions in Cellular Automation Game (Like Conway)

I have a grid that can be represented as a boolean[][], e.g. new boolean[][] { {true, false, true, ...}, {false, true, false, ...} {true, false, true, ...} ... } would represent a grid like: O X O ... X O X ... O X O ... ... where…
-1
votes
1 answer

wireworld haskell help needed

i am required to make a wireworld move and i want to put a function inside another function("help1") but i can't get it to work, there are multiple files here is what i have module Transitions.For_List_2D ( transition_world -- :: List_2D Cell…
-1
votes
2 answers

Detecting boundaries between different colours

I am generating 3D polycrystals structure based on Cellular automata method. My rendered structure looks like: http://www-e.uni-magdeburg.de/dzoellne/simulation/Bilder/3D_structure.gif Is there any way to mark boundaries of each color ? Each color…
-1
votes
1 answer

Excluding fields with certain state from 2D array; Game of life

I have an array - 2D(100 x 100 in this case) with some states limited within borders as shown on picture: http://tinypic.com/view.php?pic=mimiw5&s=5#.UkK8WIamiBI Each cell has its own id(color, for example green is id=1) and flag isBorder(marked as…
user2803017
  • 19
  • 1
  • 4
-1
votes
1 answer

How to avoid threads to compete for the same pixels in a cellular automata

I am writing a stochastic cellular automata where I have Cells (defined as a group of pixels) playing on a grid. The grid is in the main program, and I have a class for the Cell object and a class inheriting Thread for the stochastic computation of…
Myoch
  • 793
  • 1
  • 6
  • 24
-2
votes
1 answer

Get specific groups of cells from a cellular automata simulation

I am making a game in Unity where a player can delete a number of cells from my simulation. Assume that all the cells are connected only to the top row through their neighbors. The player comes in and deletes cells creating a group of cells that are…
-2
votes
1 answer

I don't understand what shape the array in my functions argument is

I am trying to run conway's game of life using the function animate_life(100, 'beacon',[0], 30, 300) But it keeps popping up errors , in its current form it says : x_start, y_start = seed_position[0], seed_position[1] IndexError: list index out…
bhapi
  • 97
  • 3
-2
votes
6 answers

Conway's Game Of Life

I am currently writting a programe about Conway's Game of life and I am really a beginner of python, I don't know how to start at all. Anybody can help me with it?
NONEenglisher
  • 1,715
  • 4
  • 15
  • 17
-2
votes
1 answer

Implementing a rule 110 cellular automata using 1D arrays

I'm trying to write code to use 1D arrays to show rule 110, for an array of 30 integers, for 20 lines. #include void rule(int t[]); int main(void) { int count = 0; int i; int t[] =…
Finlandia_C
  • 385
  • 6
  • 19
-2
votes
1 answer

What function is Lua can judge the coordinate of a cell?

I am working on a Lua script(cell automation) and now I need to divide the cellularspace into 4 parts, each part has its own function, I use the following code (might looks stupid to some of you) : if cells:getCell(Coord{x < 25 ,y < 25})…
-2
votes
2 answers

Cellular Automata Java (Beginner)

I'm creating a game along the lines of Minicraft. I posted a question about how I should make a terrain similar to the one in the game here and user by the name of Quirliom posted an answer referring to what is called cellular automata. I had…
Kultid_Games
  • 311
  • 1
  • 3
  • 10
-3
votes
1 answer

Why isn't this Conway Game of Life Cellular Automaton in TypeScript evolving after ~5 generations?

I have a 2D cellular automaton open source project here, where the automaton is basically this: export interface CA { i: Uint8ClampedArray; load: Uint8ClampedArray; max: number; move: Array | Array<(n: Uint8ClampedArray) =>…
Lance
  • 75,200
  • 93
  • 289
  • 503
-3
votes
1 answer

Cellular automaton and Random movements

How can I have random movements in my Cellular automaton model? For example, if the elements in a cell is much more than two or more neighboring cells I'd like to randomly choose a few neighbors to give some elements. I tried all the codes that came…
noni
  • 67
  • 1
  • 9
-3
votes
1 answer

What is not Cellular Automata?

Generalized a specific question I had which is: Would it still be called Cellular Automata if the state of the cell depended on the state of all the other cells in the grid?
Rohit
  • 3,087
  • 3
  • 20
  • 29
1 2 3
14
15