o
odinpkg.dev
packages / library / odin_raylib_sparkler

odin_raylib_sparkler

157a48blibrary

playground

No license · updated 2 years ago

Todo: Wireworld Cellular Automata Algorithm

A Wireworld cell can be in one of four different states: Empty , Electron head, Electron tail , and Connector

As in all cellular automata, time proceeds in discrete steps called generations. Cells behave as follows:

Empty → Empty
Electron head → Electron tail
Electron tail → Connector
Connector
    → Electron head if exactly one or two of the neighboring cells are electron heads
    → remains connector otherwise

In the rules above, neighboring means one cell away in any direction, both orthogonal and diagonal.8