Skip to content

codefloww/Automaton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automaton

Automaton is a team project for the discrete math course and intended to showcase a simulation and finite and determined automatons.
This project is made by Pavlo, Dima, Nastya, Yaryna, and Nastya.

How it works?

This is a simulation of life in some water environment. There are some characteristics of environment and 3 main instances: plants, wall and organisms,
which are our automatas. So this is a cellular automaton. The evolution is implemented via genoms of each automatons and processes like mutations, reproducing and other.
For more information go to our awesome Wiki pages.

Installation

To try our simulator you need to install package.
You can do it by running:

git clone https://github.com/codefloww/Automata.git

and after that go to clonned directory and run:(It's recommended to do after entering venv)

python3 -m pip install .

for installing package via pip.

Run

To run a simulation you can simply go in the Automaton directory that you clonned and run the automaton/simulation.py or import package to your file and simply running something like

from automaton.simulation import Simulation
from automaton.environment import Environment
env = Environment (55, 42)
sim = Simulation(env)
sim.run(100, 100)

You will see a window that looks like this
image Here you can click on light bulb to turn on light in the environment:
image You can also choose different instances to place in environment, erase them, go back via Ctrl-Z.
image
After that you press Play button to run simulation: Alt text Every simulation may be different from each other because of the mutations and crossover.)

License

MIT

About

A simple example of evolution simulation using primitive genetic algorithms in automatons.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages