Skip to content

NielsOuvrard/wolfram

Repository files navigation

Wolfram

Description

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.

Installation

To install Wolfram, follow these steps:

  1. Install stack from https://docs.haskellstack.org/en/stable/README/
  2. Execute make
  3. And use it, for example: ./wolfram --rule 110 --lines 20

Usage

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.

Screenshots

./wolfram --rule 102 --lines 60 --window 125 --start 0 --move 0 Screenshot 1

wolfram --rule 90 --lines 60 --window 125 --start 0 --move 0 Screenshot 2

About

Software that displays the output of a one-dimensional cellular automaton. In Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published