Go to file
2021-06-23 11:52:04 +02:00
app Fix a_star goaltest and heuristic function 2021-06-23 11:52:04 +02:00
data add decision tree 2021-06-23 11:07:35 +02:00
maps add loader map 2021-05-05 16:59:41 +02:00
resources add sunflower to neural network 2021-06-02 01:38:22 +02:00
.gitignore init app 2021-03-16 10:06:56 +01:00
config.py Fix a_star goaltest and heuristic function 2021-06-23 11:52:04 +02:00
main.py add loader map 2021-05-05 16:59:41 +02:00
Readme.md add decision tree 2021-06-23 11:07:35 +02:00
requirements.txt add decision tree 2021-06-23 11:07:35 +02:00

Tractor

1. Requirements

python version 3.9 or higher

python3 --version

2. Create virtual environments and install libs

virtualenv venv
source activate
pip3 install -r requirements.txt

3. Run application

python3 main.py

4. Arguments

Maps are saved in maps directory with json format.
It's two dimensional array of types of fields.
Example:

[
  ["Corn", "Sunflower","Clay"],
  ["Clay", "Soil","Clay"],
  ["Sunflower", "Soil","Corn"]
]

Warning! Map must the same sizes what loaded map!
Change sizes map in config.py

# Board settings:
VERTICAL_NUM_OF_FIELDS = 3
HORIZONTAL_NUM_OF_FIELDS = 3

4.1 Save generated map:

python main.py --save-map

Map will be saved in maps directory. Generated filename: map-uuid

4.2 Load map

python main.py --load-map=name_of_map

Map must be in the maps directory with json extension.