Skip to content

zella03/WorldSimulator2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

World Simulator 2D

This project was developed as a world simulator for Object-Oriented Programming coursework. The simulation features a diverse ecosystem of animals, plants, and a user-controlled human.

The core simulation dynamics include:

  • Reproduction of animals and plants.
  • Predation and interactions, where stronger animals and poisonous plants impact the survival of other entities.
  • Direct user control of the human character, enabling exploration and interaction within the simulated environment.

C++ Implementation

The C++ version of the simulator includes the following elements:

  • Animals:
    • Wolf
    • Fox
    • Sheep
    • Turtle
    • Antelope
  • Plants:
    • Belladonna
    • Grass
    • Guarana
    • Sosnowsky Hogweed
    • Sow Thistle
  • Human: User-controlled character.

Visualization in the C++ version is achieved using ASCII characters:

ASCII Visualization 1

ASCII Visualization 2

To run the C++ simulation, execute the main file.

Python Implementation

The Python version extends the C++ version with the addition of the Cyber Sheep and utilizes the Pygame library for graphical visualization:

Pygame Visualization 1

Pygame Visualization 2

To run the Python simulation, execute the Menu.py file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published