summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/gnuchess.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.h')
-rw-r--r--apps/plugins/chessbox/gnuchess.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h
new file mode 100644
index 0000000000..6ea77dc00b
--- /dev/null
+++ b/apps/plugins/chessbox/gnuchess.h
@@ -0,0 +1,37 @@
1
2#ifndef _GNUCHESS_H_
3#define _GNUCHESS_H_
4
5#define neutral 2
6#define white 0
7#define black 1
8#define no_piece 0
9#define pawn 1
10#define knight 2
11#define bishop 3
12#define rook 4
13#define queen 5
14#define king 6
15#define valueP 100
16#define valueN 350
17#define valueB 355
18#define valueR 550
19#define valueQ 1100
20#define valueK 1200
21
22
23extern short mate,opponent,computer;
24extern short locn[8][8];
25extern short board[64];
26extern short color[64];
27extern long Level;
28extern short TCflag,TCmoves,TCminutes;
29
30
31void SetTimeControl(void);
32void GNUChess_Initialize(void);
33int VerifyMove(char s[],short iop,unsigned short *mv);
34int SelectMove ( short side, short iop);
35
36
37#endif