Battlefield of Cellular Automata

For discussion of other cellular automata.
Post Reply
jwfa
Posts: 3
Joined: December 22nd, 2021, 11:29 am

Battlefield of Cellular Automata

Post by jwfa » December 22nd, 2021, 11:38 am

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/

User avatar
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

Post by breaker's glider gun » December 24th, 2021, 2:18 pm

but how do U draw them? The console thing is blank.
:?: :?: . . . :!:
Give me a suggestion of something to draw here!

jwfa
Posts: 3
Joined: December 22nd, 2021, 11:29 am

Re: Battlefield of Cellular Automata

Post by jwfa » December 24th, 2021, 6:25 pm

The code is in JavaScript. There is no output in the console. The drawing is done with SVG.

User avatar
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

Post by breaker's glider gun » December 24th, 2021, 10:43 pm

Oh. Now I understand. Thanks for your support!
:?: :?: . . . :!:
Give me a suggestion of something to draw here!

Post Reply