April 2023
This project was implemented for Object Oriented Programming course.
The aim of the project was to implement a simple world simulator as a console application. The world is represented as a two-dimensional grid of size
This program also allows user to save and load world state from .txt file.
- up arrow
$\uparrow$ , down arrow$\downarrow$ , left arrow$\gets$ , right arrow$\to$ - direction in which human will move - q - quit program
- u - activate special human skill
- z - save world state to file
- w - load world state from file
Plants
Name | Strength | Initiative | Special behaviour | Character representation |
---|---|---|---|---|
wolf | 9 | 5 | - | W |
sheep | 4 | 4 | - | O |
fox | 3 | 7 | never moves to the space occupied by organism stronger than him | L |
turtle | 2 | 1 | 75% of time does not change its position, repels attacks of animals with strength <5, the attacker must get back on its previous field | T |
antelope | 4 | 4 | moves 2 fields in every direction, 50% chance to escape before the fight (moves to unoccupied adjacent field) | A |
Animals
Name | Strength | Initiative | Special behaviour | Character representation |
---|---|---|---|---|
grass | 0 | 0 | - | t |
field milk thistle | 0 | 0 | makes three attempts to spread in one turn | m |
guarana | 0 | 0 | increases +3 strength of animal which ate this plant | g |
belladonna | 99 | 0 | animal that ate this plant dies | j |
Sosnowsky's hogweed | 10 | 0 | all animals in its neoghbourhood die, animal that ate this plant dies | b |
Human special skill Aluzr's shield - human scares away all animals, animal which stands on the human field is moved to random adjacent field
These screenshots represent world of size

