#include "constant.h" #include "enviroment.h" #include "q-learning.h" #include #include #include #include int main(){ short board[ROW_NUM][COL_NUM]= {0}; short winner; struct Node ** map; // pointer to pointer, hash table bool find; float state[ACTION_NUM]; srand(time(NULL)); // init hash table map = malloc(TABLE_SIZE * sizeof(struct Node*)); for (int i=0; i