Skip to content

Tomunek/Sheepmulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sheepmulation

A simple ecosystem simulation consisting of a wolf hunting a pack of sheep

Usage:

Run simulation with default settings:

python3 main.py

Available options:

  • -c <FILE>/--config <FILE> - select config file to modify behaviour of animals
  • -h/--help - display info about all available command line arguments
  • -l <LEVEL>/--log <LEVEL> - select log level (DEBUG/INFO/WARNING/ERROR/CRITICAL)
  • -r <ROUNDS>/--rounds <ROUNDS> - select number of rounds to be simulated
  • -s <SHEEP>/--sheep <SHEEP> - select initial number of sheep
  • -w/--wait - wait for user after simulating each

Examples:

Run simulation with

  • behavior from config.ini file,
  • for 100 rounds,
  • with 20 sheep,
  • log WARNINGS and ERRORS (CRITICAL too)
  • and wait for user after every round
python3 main.py -c config.ini -l WARNING -r 100 -s 20 -w

Show help message:

python3 main.py --help

About

A simple ecosystem simulation (assignment for university course)

Topics

Resources

Stars

Watchers

Forks

Languages