Changed numbers for fun

This commit is contained in:
TriantaTV 2023-09-24 23:55:00 -05:00
parent 8950474656
commit b76737f60b
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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);