Class Evaluate
java.lang.Object
Evaluate
public class Evaluate
extends java.lang.Object
This class is designed to quickly evaluate the quality of a
MarioAgent AI.
Check the main(String[]) method where you can easily run an evaluation for
certain levels or for all level configs.
Note that if you add a custom level config into LevelConfig, evaluateAll(int) will
automatically pick it up ;-)
-
Field Summary
Fields Modifier and Type Field Description static intMAP_REPETITIONSHow many times we should evaluate each level configuration.static intMAPS_COUNTHow many randomized level configurations we should evaluate per level. -
Constructor Summary
Constructors Constructor Description Evaluate() -
Method Summary
Modifier and Type Method Description static voidevaluateAll(int seed)static MarioRunResultsevaluateLevel(int seed, LevelConfig level)static MarioRunResultsevaluateLevel(int seed, LevelConfig level, boolean saveResults)static voidevaluateLevels(int seed, LevelConfig... configs)static voidmain(java.lang.String[] args)A simple way to evaluate yourMarioAgent.static voidprintResults(LevelConfig level, MarioRunResults results)
-
Field Details
-
MAPS_COUNT
public static final int MAPS_COUNTHow many randomized level configurations we should evaluate per level.- See Also:
- Constant Field Values
-
MAP_REPETITIONS
public static final int MAP_REPETITIONSHow many times we should evaluate each level configuration.- See Also:
- Constant Field Values
-
-
Constructor Details
-
Evaluate
public Evaluate()
-
-
Method Details
-
evaluateLevel
-
evaluateLevel
-
printResults
-
evaluateLevels
-
evaluateAll
public static void evaluateAll(int seed) -
main
public static void main(java.lang.String[] args)A simple way to evaluate yourMarioAgent.
-