-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMiniMax.h
More file actions
26 lines (18 loc) · 723 Bytes
/
MiniMax.h
File metadata and controls
26 lines (18 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "heuristica.h"
#ifndef profunditat
#define profunditat 6 //es pot triar 2, 4 o 6 (també funciona amb 3 i 5 però no funciona millor que 2 i 4 respectivament)
void copiarTauler (char pare[N][N],char fill[N][N]);
void ferTirada(char m[N][N], int numFill,int nivell);
int calculaNumFills(char m[N][N]);
Node *crearNode(Node *pare, int numFill, int nivell);
void crearNivell(Node *pare, int nivell);
void crearArbre(Node *arrel, int nivell);
void esborraNode(Node *node);
void esborrarArbre(Node* node);
void mostraNode(Node *node, int nivell);
void recorreArbreRec(Node *arrel,int nivell);
int valorFills(Node *node);
int maxim(Node *node);
int minim(Node *node);
int MiniMax(Node *node, int nivell);
#endif