-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconstant.h
61 lines (37 loc) · 1.07 KB
/
constant.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
File: constant.h
Created: July 10, 1997
Modified: September 14, 2002
Author: Gunnar Andersson ([email protected])
Contents: Some globally used constants.
*/
#ifndef CONSTANT_H
#define CONSTANT_H
#ifdef __cplusplus
extern "C" {
#endif
/* Symbolic values for the possible contents of a square */
#define ILLEGAL -1
#define BLACKSQ 0
#define EMPTY 1
#define WHITESQ 2
#define OUTSIDE 3
#define OPP( color ) ((BLACKSQ + WHITESQ) - (color))
/* Some default values for the interface */
#define DEFAULT_WAIT 0
#define DEFAULT_ECHO 1
#define DEFAULT_DISPLAY_PV 1
/* Miscellaneous */
#define MAX_SEARCH_DEPTH 64
#define PASS -1
#define SEARCH_ABORT -27000
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifdef __cplusplus
}
#endif
#endif /* CONSTANT_H */