mconigliaro / cellular_automata

Simple 2D cellular automata implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cellular Automata

Continuous Integration

Simple 2D cellular automata implementation with fun visualizations for your terminal

Features

  • The default automaton is Conway's Game of Life, but many other automata with different rules are supported (using the standard Moore neighborhood).
  • By default, the size of the universe will be equal to the dimensions of the terminal window. When the universe is bigger than the terminal window, the arrow/WASD keys can be used to adjust the viewport. Hold Shift to scroll a page at a time in any direction and use Home to return to the default position.
  • Use the + and - keys to control the speed of the simulation.
  • Support for closed and wrapped universe topologies.
  • Themes!

Getting Started

poetry install
poetry shell
...

Run Tests

pytest

Run Simulation

Use --help to see available options:

ca

About

Simple 2D cellular automata implementation


Languages

Language:Python 100.0%