ChEn 436 Process Control final project: adaptive game difficulty
The basic file structure here is as follows:
sim.py
implements the basic gameplay simulation, as well as classification system and PID control system.
main.py
takes two command line arguments, an int from 1 to 10 for skill and r
, c
, or m
for play style. It will run a simulation with those parameters, and generate and save some plots about that simulation. (It calls plt.show
, so depending on where you run the code, it will probably also show you the plots.)
params.py
is used to run a large number of simulations, for the purpose of gathering statistics; it also uses those simulations to determine values for process gain params.txt
here, so you do not need to run this unless you want to recalculate sim_results
folder.
trends_gen.py
generates the reference file which our classification system uses. (Again, we have provided this output, trendslist.data
, which is a pickled Python list, so you do not need to run this file.) It uses saved output files from params.py
, so if you choose to run this, you should run params.py
first.