heuristicas começando a implementar ...
[xYpjg3TdSw.git] / LearningEnemy.h
blobc213df2a197bd7a0ac6e9cc97bf6cd75dc3f8321
1 #ifndef __LEARNING_ENEMY_H__
2 #define __LEARNING_ENEMY_H__
4 #include "MinimaxEnemy.h"
6 #define VAR_INT 100
7 #define VAR_DOU 100
8 #define STEPS 3
10 class LearningEnemy: public MinimaxEnemy
12 public:
13 LearningEnemy(bool player, int minimaxDepth): MinimaxEnemy(player, minimaxDepth) {}
14 ~LearningEnemy();
15 LearningEnemy * createSon();
16 LearningEnemy * createSon(LearningEnemy enemy);
17 unsigned int vitorias;
18 unsigned int derrotas;
19 unsigned int rodadaVitorias;
20 unsigned int rodadaDerrotas;
21 int i[VAR_INT];
22 int d_int[STEPS][VAR_INT]; // Derivada nos últimos passos
23 double d[VAR_DOU];
24 double d_dou[STEPS][VAR_DOU]; // Derivada nos últimos passos
25 int heuristica(Board board, bool player);
26 private:
27 double distCentro(Board board, bool player);
28 double distEntreSiMan(Board board, bool player);
29 double distEntreSiEuc(Board board, bool player);
30 double cubicPolynome(Board board, bool player);
33 #endif