Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tscp uses which board representation?

Author: David Mitchell

Date: 03:47:57 06/01/04

Go up one level in this thread


On May 31, 2004 at 11:55:27, Gopikrishna wrote:

>So tscp uses 0x88 or offset board representation? Thanks.

It's an offset board type.

This is from board.c in TSCP:

		for(j=0;j<offsets[piece[i]];j++)
			for(n=i;;) {
				n=mailbox[mailbox64[n]+offset[piece[i]][j]];
				if(n==-1)
					break;
				if(n==sq)
					return(TRUE);
				if(color[n]!=EMPTY)
					break;
				if(!slide[piece[i]])
					break;
			}

Is this the info you were looking for?

Dave




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.