Skip to content

Implementation

Paul edited this page Jun 5, 2022 · 1 revision

Implementation

The whole project built in python, using pygame for graphical interface. The structure of project is build due to OOP model.
The main classes are Simulation, Environment, GUI, Cell, Automata. The driver class for simulation is Simulation. There we creates Environment and operates with it via GUI. In each cell of environment grid there is Cell which can be of different types. The most interesting is organism which has written few different abilities. Those can be used only after genom of cell has a certain form after numerous steps of evolution.
The step of evolution happens simultaniously-consequently which means that there are usually an order of organisms which do their actions, but in case it may consequence other alive organisms, result of their actions are remembered and possibility for other organisms to act is given.

Clone this wiki locally