File: minimax.h

package info (click to toggle)
mancala 1.0.0-1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 148 kB
  • ctags: 153
  • sloc: ansic: 928; makefile: 99
file content (34 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (7)
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
27
28
29
30
31
32
33
34
/* $Id: minimax.h,v 1.1.1.1 1995/07/25 11:55:21 sverrehu Exp $ */
#ifndef MINIMAX_H
#define MINIMAX_H

#include <limits.h>

#ifdef __cplusplus
  extern "C" {
#endif

struct  Move;
typedef struct Move *PMove;

typedef int Player;

typedef int Score;
#define INF_SCORE INT_MAX

PMove miniMax(
	      void   (*fncPushBoard)(void),
	      void   (*fncPopBoard)(void),
	      PMove *(*fncGetMoves)(Player, int *),
	      Player (*fncDoMove)(Player, PMove),
	      void   (*fncUndoMove)(Player, PMove),
	      Score  (*fncEvalBoard)(Player),
	      Player player,
	      int    maxPly
	      );

#ifdef __cplusplus
  }
#endif

#endif