Widelands project: https://wl.widelands.org/
Forum thread: https://wl.widelands.org/forum/topic/1762/
How to use this repository?
- git https://github.com/einstein13/wl_ship_optimization.git (copy repository to your disc)
- cd wl_ship_optimization (go to its folder)
- python execute_all.py (to run all tests)
- python execute_one.py (to run one test only)
To create your own class it is recommended:
- To create ship class in new file in folder ships/
- To add the class in settings.py SHIPS
- To create port class in new file in folder ports/
- To add the class in settings.py PORTS
Basic problem is to find best algorithm for ships transport in the game. There are many ways to do that, but one of the easiest one is to make an experiment.
Algorithms here have the same rules as it is in Widelands:
- Ports and Ships are objects
- Those objects are separate and independet
- Both of them can contain wares
For "humans":
- settings.py is a file where all settings are defined
- it is recommended to add Port classes to folder ports
- it is recommended to add Ship classes to folder ships
- overriding any method is welcome in your class
- adding new methods is ok, but remember to name it differently than the others
- adding new properties/ variables is possible to your class