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

26 lines
698 B
C
Raw Normal View History

2022-11-18 16:49:19 +01:00
#ifndef OTHELLO_MINIMAX_H
#define OTHELLO_MINIMAX_H 1
2022-11-19 11:40:52 +01:00
#include <limits.h>
#include <string.h>
2022-11-18 17:09:15 +01:00
#include "joueur.h"
2022-11-18 16:49:19 +01:00
typedef struct jeu Jeu;
/* Joue le tour d'après l'algorithme Minimax */
void action_joueur_minimax(Jeu *jeu, int couleur);
2022-11-18 17:09:15 +01:00
/* Implémentation de Minimax */
2022-11-19 11:40:52 +01:00
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]);
2022-11-18 17:09:15 +01:00
2022-11-18 16:49:19 +01:00
#endif