Creating a 2D Cellular Automata with Modifications

  • Thread starter Thread starter farful
  • Start date Start date
  • Tags Tags
    Automata
AI Thread Summary
Creating a two-dimensional cellular automata (CA) can be achieved using various programming tools, even for those with limited programming experience. The discussion highlights the need for a platform that allows for extensive modifications, including square-shaped cells with eight neighbors, multiple states represented by colors, and customizable rules for cost, selection, and initial states. While Matlab can be used for basic cell representation, it lacks visual appeal. FreeBasic is recommended for its user-friendly graphics capabilities, making it suitable for beginners. Additionally, a specific program linked in the discussion is praised for its versatility in handling different types of CAs, suggesting it may be the best option for users who prefer not to code from scratch. Overall, leveraging existing software or simple programming libraries can facilitate the creation of visually engaging cellular automata.
farful
Messages
55
Reaction score
1
I'm looking to create a two-dimensional cellular automata. And I suck at programming, esp if graphics are involved. Is there anything out there where you can program the rules for a CA and I can just let it run whilst watching it? I will need some extensive modifications...

Requirements of modifications I willl need:
1) two dimensional
2) cells are square-shaped (such that they have 8 neighbors)
3) each cell must allow at least 8 states (represented by different colours or whatever)
4) rules for cost
5) rules for selection
6) rules for initial state
7) I'm really not sure what else yet!

I've often used Matlab, to create cells using a vector/matrix, and used numbers, 0, 1, 2, etc, to change the state of a cell... but it's clearly not as pretty nor fun to watch :(
 
  • Like
Likes Milan Bok
Technology news on Phys.org
Do you know C or Basic programming? If so, you can write a console version of Conway's game of life in less than 100 lines. I don't know anything about Matlab, but I know that FreeBasic is very easy to use and has a simple graphics library. It might work if you are new to coding.
 
If you are allowed to us another program, I suggest:

http://www.mirekw.com/ca/index.html

If you have to program it yourself, I would suggest just doing some simple (ASCII graphics using Allegro would be easy enough).

As to the link, that program is one of the greatest because it has so many different types of CA's, 1D's and 2D's, as well as numerous variants (such as generations). Overall, I doubt you will find a better free program to do what you want short of you making it yourself.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top