This repository has been archived on 2022-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
Othello/includes/minimax.h
2022-11-19 11:40:52 +01:00

25 lines
698 B
C

#ifndef OTHELLO_MINIMAX_H
#define OTHELLO_MINIMAX_H 1
#include <limits.h>
#include <string.h>
#include "joueur.h"
typedef struct jeu Jeu;
/* Joue le tour d'après l'algorithme Minimax */
void action_joueur_minimax(Jeu *jeu, int couleur);
/* Implémentation de Minimax */
int minimax(Jeton *plateau[LONGEUR][LARGEUR], int profondeur, Coups *positions,
Jeton coup_choisi, int joueur, int joueur_gagnant);
/* Calcule la valeur heuristique pour un coup */
int heuristique(Jeton *plateau[LONGEUR][LARGEUR], Jeton coup_choisi);
/* Copie le plateau */
void copie_plateau(Jeton *plateau_source[LONGEUR][LARGEUR],
Jeton *plateau_destination[LONGEUR][LARGEUR]);
#endif