Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: SPEED !!! help a novice chess programmer =)

Author: Adriano Bedeschi de Souza

Date: 20:31:20 06/17/02

Go up one level in this thread


>while (p = Get_Next_Piece(bitboard))
>{
>   Rotate45...
>   Remove_Piece(bitboard, p);
>}

Hmmm, look at my ChessPosition structure

typedef struct _ChessPosition {

	char board[64];

	BitBoard whitePawns;
	BitBoard blackPawns;

	BitBoard whiteKnights;
	BitBoard blackKnights;

	BitBoard whiteBishops;
	BitBoard blackBishops;

	BitBoard whiteRooks;
	BitBoard blackRooks;

	BitBoard whiteQueens;
	BitBoard blackQueens;

	BitBoard whiteKing;
	BitBoard blackKing;

	BitBoard whitePieces;
	BitBoard blackPieces;

	int wKing;
	int bKing;

	int castle;
	int enpassant;
	int nMoves;

} ChessPosition;

if i put three more BitBoards in the structure (rotated90R, rotated45L,
rotated45R) and i update it when calling makemove, why will i need to Rotate the
board again? the Rotate45Right function turns into trash...



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.