Hi, I created a simple webpage where two cellular automata fight each other.
You can set any rules you want (similar to Game of Life) for each automaton.
Beside typical rules, each cell, dead or alive, belongs to gold or black automaton. Every turn each alive cell counts neigbouring allies and enemies. If there is more enemies than allies plus one, the cell joins enemy automaton. Also when the cell is born it switches sides if there is more enemies than allies around it.
I chose the default settings which turned out to be interesting in my opinion. You can observe the result, I think it's pretty cool. The gold one is kind of getting surrounded by the black one and tries to escape. The black automaton needs gold one to survive, but not the other way around. If gold one wins, it fills the whole space. Ulitmately they need each other to be interesting.
Here is the link: https://thesigns.icu/battlefield/
Battlefield of Cellular Automata
- breaker's glider gun
- Posts: 673
- Joined: May 23rd, 2021, 10:26 am
- Location: the inside of a stuffed anaconda or maybe [click to not expand]
Re: Battlefield of Cellular Automata
but how do U draw them? The console thing is blank.
Re: Battlefield of Cellular Automata
The code is in JavaScript. There is no output in the console. The drawing is done with SVG.
- breaker's glider gun
- Posts: 673
- Joined: May 23rd, 2021, 10:26 am
- Location: the inside of a stuffed anaconda or maybe [click to not expand]
Re: Battlefield of Cellular Automata
Oh. Now I understand. Thanks for your support!