diff options
author | Hristo Kovachev <bger@rockbox.org> | 2006-02-22 14:24:54 +0000 |
---|---|---|
committer | Hristo Kovachev <bger@rockbox.org> | 2006-02-22 14:24:54 +0000 |
commit | 91522721f4a6f4449e14e1b3ccb9f6f2add5d814 (patch) | |
tree | dbb2ee4d9e4ee752f8eaf6081204be2f44f20fa8 /apps/plugins/chessbox/gnuchess.h | |
parent | b12bcecb297ab8408b25bc9e539d78fa92e6589e (diff) | |
download | rockbox-91522721f4a6f4449e14e1b3ccb9f6f2add5d814.tar.gz rockbox-91522721f4a6f4449e14e1b3ccb9f6f2add5d814.zip |
New chessbox plugin by Miguel A. ArЩvalo, based on GNU Chess v2
Not built yet because of a missing dependancy with the pieces' bitmaps. Someone with Makefile knowledge, please, look at it!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8778 a1c6a512-1295-4272-9138-f99709370657
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 | ||