Loading repository data…
Loading repository data…
woojiahao / repository
Conway's Game of Life Visualization built with Elixir and Scenic
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Conway's Game of Life visualizer tool built with Elixir and Scenic.
Flyer Generator
Pulsar Oscillator
In the Game of Life, a board has cells that are either alive or dead. Given a set of rules, the board will change. All changes for a given iteration/tick happen simultaneously on the previous board status. This means that any changes to the cells during the current iteration will not influence the other cells.
The rules of Conway's Game of Life are very simple,
Important Unfortunately, due to limitations of Scenic, the visualizer can only run on Mac OS and Linux.
Ensure that Elixir and any dependency of Scenic is installed.
git clone https://github.com/woojiahao/life.git
cd life/
mix deps.get
mix scenic.run
Select the cells to set them as alive/dead before running.
You can configure the board size and initial pattern by editing the config/attrs.exs file, under the :attrs config.
import Config
# Configure here
config :life, :attrs, %{
cell_size: 20,
evolution_rate: 100,
pattern: :empty
}
cell_size -- size of each cell displayedevolution_rate -- speed each iteration occurs, measured in millisecondspattern -- some default oscillating patterns to get started, includes :blinker, :beacon, :pulsar, :toad, :empty