17 #include <core/darwin.h> 18 #include <core/properties.h> 19 #include <core/stringify.h> 20 #include <core/tournament_implementations.h> 30 inline auto customStringify(core::TypeTag<AnnType>) {
32 { AnnType::Value,
"value" },
33 { AnnType::Policy,
"policy" },
40 PROPERTY(
ann_type, AnnType, AnnType::Value,
"The role of the evolved brains");
84 size_t inputs()
const override;
85 size_t outputs()
const override;
89 unique_ptr<core::PropertySet> calibrateGenotype(
96 return make_unique<TicTacToe>();
99 unique_ptr<core::PropertySet> defaultConfig(
101 auto config = make_unique<Config>();
104 config->tournament_type.simple_tournament.eval_games = 2;
105 config->tournament_type.simple_tournament.rematches =
false;
107 config->calibration_matches = 3;
ComplexityHint
A generic hint for the initial population & domain setup.
Definition: darwin.h:47
A population implementation encapsulates the fixed-size set of genotypes, together with the rules for...
Definition: darwin.h:161
best guess for the ideal performance/results trade-offs
bool evaluatePopulation(darwin::Population *population) const override
Assigns fitness values to every genotype.
Definition: tic_tac_toe.cpp:46
bare minimum, fast but poor results (mostly useful for testing)
Tournament configurations.
Definition: tournament_implementations.h:42
size_t inputs() const override
Number of inputs to a Brain.
Definition: tic_tac_toe.cpp:38
AnnType ann_type
"The role of the evolved brains"
Definition: tic_tac_toe.h:40
Interface to the domain factory.
Definition: darwin.h:263
size_t outputs() const override
Number of outputs from a Brain.
Definition: tic_tac_toe.cpp:42
Domain: Tic-tac-toe
Definition: tic_tac_toe.h:82
Tic-Tac-Toe domain configuration.
Definition: tic_tac_toe.h:39
Definition: ann_player.cpp:24
might produce more sophisticated solutions, but very slow
void copyFrom(const PropertySet &src)
Transfer values between two property sets.
Definition: properties.h:416
The foundation for data structures supporting runtime reflection.
Definition: properties.h:388
tournament::TournamentVariant tournament_type
"Tournament type"
Definition: tic_tac_toe.h:46
Interface to a domain implementation.
Definition: darwin.h:229
Handles types with a fixed, known set of values (enumerations for example)
Definition: stringify.h:85
A basic tournament implementation.
const Stringify< T > * stringify()
Returns the stringifier for type T.
Definition: stringify.h:166
The interface to the population-specific "genetic material", the Genotype
Definition: darwin.h:126
int calibration_matches
"Number of calibration games"
Definition: tic_tac_toe.h:41