You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maxwell Rose edited this page Dec 2, 2020
·
3 revisions
Setup
When cloning this repository, a few steps must be taken before running:
Clone StacSettlers and build .jar file according to instructions documentation into the same folder as this repository
modify path variable in mctsconfig.py to contain the directory containing this repo and StacSettlers
To run a test in main.py
In main(), specify the type of test and pass in an iterable containing the range of values to be tested
Create two folders within CatanAI: results and configs
In the command line, run:
python3 main.py
When the simulations are complete, the data will be stored in a .CSV in the results folder, as well as displayed as a plot.
There are three included tests, iterations, exploration parameter, and minimum visits. Uncomment the corresponding line to run the tests, test_iterations is set by default
To run the genetic algorithm
In main(), specify your desired ga parameters.
Create two folders within CatanAI: results and configs
In the command line, run:
python3 ga_main.py
The output will be added to a .CSV in the results folder.