File: minimax.h

package info (click to toggle)
mancala 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 196 kB
  • ctags: 104
  • sloc: ansic: 710; makefile: 67; sh: 6
file content (34 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
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