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 int
MAP_REPETITIONS
How many times we should evaluate each level configuration.static int
MAPS_COUNT
How many randomized level configurations we should evaluate per level. -
Constructor Summary
Constructors Constructor Description Evaluate()
-
Method Summary
Modifier and Type Method Description static void
evaluateAll(int seed)
static MarioRunResults
evaluateLevel(int seed, LevelConfig level)
static MarioRunResults
evaluateLevel(int seed, LevelConfig level, boolean saveResults)
static void
evaluateLevels(int seed, LevelConfig... configs)
static void
main(java.lang.String[] args)
A simple way to evaluate yourMarioAgent
.static void
printResults(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
.
-