Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```