A battle of random walkers


A battle of random walkers

My first random walker experience is changing classes demo into self-avoiding walk.

The result was quick and dirty. It did not look well.


How it will be if there are many self-avoiding walkers? https://alpha.editor.p5js.org/Yen168/sketches/rJRF75aSf

There are 500 self-avoiding walkers,  but  they were all dead very quickly as first example!  I rather seeing a battle between them. So I decide to play some parameters around.

Here are things I tried:

1. Allow self-avoiding walkers to occupy others’ territory.

2. Try to use different movement ratio.

3. The initial location: from a single central location or multi random locations.

The result:


Every workers are alive for a while!