π Living world simulation
LivingWorld is a C++ project that simulates a two-dimensional world where various organisms, such as Dandelion, Grass, Sheep, Toadstool, and Wolf, coexist. This simulation aims to model the interactions, dynamics among these organisms within their environment and focuses on determining which organisms are stronger than others.
To use the LivingWorld simulation, follow these steps:
- Ensure you have a C++17-compatible compiler installed on your system.
- Configure the project using CMake:
mkdir build
cd build
cmake ..
- Build the project:
cmake --build .
- Run the generated executable to start the simulation:
./LivingWorld
The simulation allows for the comparison of the relative strength of different organisms, enabling analysis and observation of their interactions.
Each organism in the simulation stores a history of its ancestors, providing insights into their lineage and evolutionary path.
The simulation incorporates the SOLID principles, ensuring modular and maintainable code design.
The simulation implements a robust mechanism for the serialization and deserialization of the world, enabling efficient storage and retrieval of simulation data. The serialized data is saved to world.bin
LivingWorld is licensed under the MIT License. See LICENSE for more information.