Computer Chess Club Archives


Search

Terms

Messages

Subject: question about fruit code

Author: Uri Blass

Date: 18:10:40 06/28/04


I do not understand the reason for the name of the following function
It does not check if a square is empty but only if the square is not a pawn.

static bool square_is_empty(const board_t * board, int square) {

   ASSERT(board!=NULL);
   ASSERT(square_is_ok(square));

   return !PIECE_IS_PAWN(board->square[square]);
}

Another note is that if I understand correctly c6 is considered to be backward
pawn in the structure c6,c5,b5 no pawn at the d file.

Do I understand it correctly?

Uri



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.