Energy Exchange Automaton (rules + video + source code)

Описание к видео Energy Exchange Automaton (rules + video + source code)

Rules:
Each cell has:
Energy (e) that is greater than or equal to 0 (e ≥ 0).
Rotation (r) that can be any value from 0 to 8 (r ∈ [0, 8]).
If a cell's energy (e) is greater than 0:
The cell loses energy equal to 1 plus its energy divided by a tax value, and this energy is transferred to one of its 8 neighboring cells.
The rotation of each cell is randomly set at each step.
If a neighboring cell has energy (e) greater than 0 and its rotation (r) matches the cell's rotation:
The neighboring cell's energy increases by 1 plus the neighboring cell's energy divided by the tax value.

Source Code: https://github.com/IoneIvan/CellularA...

Комментарии

Информация по комментариям в разработке