public Game(LearnPlayer learner, RandomPlayer randomerPlayer, Algorithm algorithm) { //inicializar this.algorithm = algorithm; this.learner = learner; this.randomerPlayer = randomerPlayer; }
static void Main() { //pesos iguais 0.5 Algorithm algorithm = new LMS(); int playerID1 = 1, playerID2 = 2; //set algoritmo e tipo jogador LearnPlayer learner = new LearnPlayer(algorithm, playerID1); RandomPlayer randomer = new RandomPlayer(algorithm, playerID2); Game game = new Game(learner, randomer, algorithm); //game.normalLearning(1000); //# of iterations game.vsHuman(); //game.Statistic(500); }