Skip to content

Overview

Evan Von Oehsen edited this page Nov 24, 2020 · 1 revision

Data Collection + Visualization

main.py

  • Runs our simulations for data collection based off of a specified set of parameters.
  • Calls a .jar file from the StacSettlers package
  • Writes results to a .CSV

graph_create.py

  • Takes the generated results .CSV and creates visualizations using MatPlotLib

GA

environment.py

  • Creates and holds our population

mctsplayer.py

  • Holds the genome and config of an MCTS player
  • Contains basic ga methods for an individual:
    • mutate()
    • crossover()
    • calculate_fitness()
    • get_fitness()

ga_main.py

  • Contains ga() and evolve_step() functions, the core of our genetic algorithm
  • Runs ga() with specified ga parameters in main()

Configuration

mctsconfig.py

  • Holds configurations
  • Generates config files for StacSettlers simulations
  • Tracks its win rate
Clone this wiki locally