Wolfram is a software that displays the output of a one-dimensional cellular automaton, named after Stephen Wolfram, the creator of Mathematica. The software is written in Haskell. It is a command-line application.
To install Wolfram, follow these steps:
- Install stack from https://docs.haskellstack.org/en/stable/README/
- Execute
make
- And use it, for example:
./wolfram --rule 110 --lines 20
Wolfram provides a variety arguments to customize the output. The following table describes the available arguments:
--rule
- The rule to use for the cellular automaton. Must be an integer between 0 and 255.--lines
- The number of lines to output. Must be an integer greater than 0.--start
- The starting configuration of the automaton. Must be a string of 0s and 1s.--window
- The number of cells to display at once. Must be an integer greater than 0.--move
- The number of cells to move the window after each step. Must be an integer greater than 0.
To have a gui interface, you can compile with make gui
and then execute ./wolfram-gui
.
But be sure to have SFML installed, you can install it with sudo apt-get install libsfml-dev
.
./wolfram --rule 102 --lines 60 --window 125 --start 0 --move 0
wolfram --rule 90 --lines 60 --window 125 --start 0 --move 0