Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/astynax/margolus
Simple "Margolus neighborhood" Cellular Automata simulator
https://github.com/astynax/margolus
Last synced: about 11 hours ago
JSON representation
Simple "Margolus neighborhood" Cellular Automata simulator
- Host: GitHub
- URL: https://github.com/astynax/margolus
- Owner: astynax
- License: bsd-3-clause
- Created: 2015-02-02T08:21:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T10:34:41.000Z (about 5 years ago)
- Last Synced: 2023-08-03T03:55:27.394Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Margolus
## About
This repo contains the source code of the [Haskell](https://haskell.org) powered [Cellular Automata](https://en.wikipedia.org/wiki/Cellular_automaton) engine with the ruleset inspired by "[Margolus](https://en.wikipedia.org/wiki/Norman_Margolus) neighborhood" automata [rules](http://www.mirekw.com/ca/rullex_marg.html).
Example "screenshot" of the "sand" simulation:
```
$
. $ $$ $$
. .
. .. # ... ...
... #.. ..#
. ...... #.. ..#
#.....# # #
. ##### .. #. .#
... # #
. ...#. . .
#...#
. ### . . .. . . .
. . . .
. .
.. . ........
.... ........
...... . ............
...... . ............
........ ... ............
........ .... ..............
```## Build
```shell
$ stack build
```## Run
```shell
$ stack exec margolus
```