Location: PHPKode > projects > WebChess > chessconstants.php
<?php
	// $Id: chessconstants.php,v 1.3 2005/04/07 15:06:33 roflo1 Exp $
	/* define constants */
	define ("EMPTY", 0);	/* 0000 0000 */
	define ("PAWN", 1);	/* 0000 0001 */
	define ("KNIGHT", 2);	/* 0000 0010 */
	define ("BISHOP", 4);	/* 0000 0100 */
	define ("ROOK", 8);	/* 0000 1000 */
	define ("QUEEN", 16);	/* 0001 0000 */
	define ("KING", 32);	/* 0010 0000 */
	define ("BLACK", 128);	/* 1000 0000 */
	define ("WHITE", 0);
	define ("COLOR_MASK", 127);	/* 0111 1111 */
?>
Return current item: WebChess