From 91522721f4a6f4449e14e1b3ccb9f6f2add5d814 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Wed, 22 Feb 2006 14:24:54 +0000 Subject: 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! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8778 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessbox/gnuchess.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 apps/plugins/chessbox/gnuchess.h (limited to 'apps/plugins/chessbox/gnuchess.h') 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 @@ + +#ifndef _GNUCHESS_H_ +#define _GNUCHESS_H_ + +#define neutral 2 +#define white 0 +#define black 1 +#define no_piece 0 +#define pawn 1 +#define knight 2 +#define bishop 3 +#define rook 4 +#define queen 5 +#define king 6 +#define valueP 100 +#define valueN 350 +#define valueB 355 +#define valueR 550 +#define valueQ 1100 +#define valueK 1200 + + +extern short mate,opponent,computer; +extern short locn[8][8]; +extern short board[64]; +extern short color[64]; +extern long Level; +extern short TCflag,TCmoves,TCminutes; + + +void SetTimeControl(void); +void GNUChess_Initialize(void); +int VerifyMove(char s[],short iop,unsigned short *mv); +int SelectMove ( short side, short iop); + + +#endif -- cgit v1.2.3