Changed numbers for fun
This commit is contained in:
parent
8950474656
commit
b76737f60b
@ -18,7 +18,7 @@ int GenerateRandomNumber(int generationLimit) {
|
||||
|
||||
GeneticRules::GeneticRules(void) {
|
||||
boardSize = 4;
|
||||
populationSize = 8;
|
||||
populationSize = 4;
|
||||
}
|
||||
|
||||
GeneticRules::GeneticRules(unsigned int boardSize, unsigned int populationSize) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
#ifndef CHESS_HPP
|
||||
#define CHESS_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
void InitializeGenerator(void);
|
||||
@ -9,7 +10,7 @@ int GenerateRandomNumber(int generationLimit);
|
||||
struct GeneticRules {
|
||||
const double kProbabilityCrossover = 0.7; //crossover probability (typical val.)
|
||||
const double kProbabilityMutation = 0.001; //mutation probability (typical val.)
|
||||
const unsigned int generationLimit = 10000; //number of generations (something huge)
|
||||
const int64_t generationLimit = INT64_MAX; //number of generations (something huge)
|
||||
unsigned int boardSize; //board size
|
||||
unsigned int populationSize; //population size (change to something even)
|
||||
GeneticRules(void);
|
||||
|
Loading…
Reference in New Issue
Block a user