Skip to content

Modelling session #1

@ethno2405

Description

@ethno2405

Using common OOP and modelling principles:

  • Create a simulation of a 2D world with wild animals roaming around it.
  • There should be two types of animals - herbivores and carnivores.
  • Each animal should have a position in the world that changes in a random direction on each world cycle (e.g. second, minute, day, etc.).
  • If a herbivore and a carnivore have the same position at a given cycle, there is a 60% chance of the herbivore being eaten by the carnivore.
  • The world ends when there are no herbivores left in the world.

Bonus:
Implement each task in a separate branch and submit pull requests linked to this issue. Hint: google "github flow" and try following it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions