diff options
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.h')
-rw-r--r-- | apps/plugins/chessbox/gnuchess.h | 37 |
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 | |||
23 | extern short mate,opponent,computer; | ||
24 | extern short locn[8][8]; | ||
25 | extern short board[64]; | ||
26 | extern short color[64]; | ||
27 | extern long Level; | ||
28 | extern short TCflag,TCmoves,TCminutes; | ||
29 | |||
30 | |||
31 | void SetTimeControl(void); | ||
32 | void GNUChess_Initialize(void); | ||
33 | int VerifyMove(char s[],short iop,unsigned short *mv); | ||
34 | int SelectMove ( short side, short iop); | ||
35 | |||
36 | |||
37 | #endif | ||