EntwurfsforschungKI Lab ← Frühe SimulationenEarly Simulations

10 territory fight 0110 territory fight 01

/

Start: die Territorien wachsen und kämpfen (20 Schritte je Bild) · Ring: Heimat einer turtle · Zurück: neues SetupStart: the territories grow and fight (20 steps per frame) · ring: a turtle's home · Reset: new setup

Ein weiteres Grundmodell für die Untersuchung der Flächenteilung, die mit „reakt diffuse 01“ begonnen hat. 132 turtles erhalten je eine Heimat an einer zufälligen Stelle des Feldes von 201 × 201 Patches und eine von vierzehn Farben. Jede turtle läuft von ihrer Heimat aus geradeaus, solange sie auf Patches ihrer Farbe steht. Erreicht sie einen fremden oder noch ungefärbten Patch, färbt sie ihn, kehrt nach Hause zurück und wählt eine neue Richtung:

mark-of patch-here = tMark → forward 1 · sonst: mark-of patch-here := tMark, zurück zur Heimat, rt random-float 360

So wächst um jede Heimat ein Gebiet, dessen Rand die turtle mit ihren Strahlen immer wieder erreicht. turtles gleicher Farbe verbinden ihre Gebiete zu gemeinsamen Territorien. Wo zwei Farben aneinanderstoßen, färbt jede die Grenzpatches der anderen um – die Grenzen bleiben in Bewegung, große Territorien haben dabei den längeren Weg zum Rand. Nach einigen tausend Schritten ist der größte Teil der Fläche aufgeteilt.

Die Zahl der Farben ergibt sich aus number-of-colors: Die Farbe ist start-with-color + k · 140 / number-of-colors in den NetLogo-Farbzahlen; Werte, die 140 nicht teilen, ergeben Abstufungen. Die App setzt das NetLogo-Experiment aus Reinhard Königs Strukturexperimenten mit denselben Regeln und Voreinstellungen um; was geändert wurde, steht in QUELLE.md.

Another basic model for the investigation of surface division, which started with “reakt diffuse 01”. 132 turtles each receive a home at a random spot on a field of 201 × 201 patches and one of fourteen colours. Each turtle walks straight ahead from its home as long as it stands on patches of its own colour. When it reaches a foreign or still uncoloured patch, it colours it, returns home and chooses a new direction:

mark-of patch-here = tMark → forward 1 · otherwise: mark-of patch-here := tMark, back home, rt random-float 360

Thus an area grows around each home, whose edge the turtle reaches again and again with its rays. Turtles of the same colour join their areas into common territories. Where two colours meet, each recolours the other's border patches – the borders stay in motion, and large territories have the longer way to their edge. After a few thousand steps most of the surface is divided.

The number of colours follows from number-of-colors: the colour is start-with-color + k · 140 / number-of-colors in NetLogo colour numbers; values that do not divide 140 give shades. The app re-implements the NetLogo experiment from Reinhard König's structure experiments with the same rules and defaults; changes are listed in QUELLE.md.