Author: David Mitchell
Date: 23:28:03 06/01/04
Go up one level in this thread
On June 01, 2004 at 12:55:11, Gopikrishna wrote:
>On June 01, 2004 at 06:47:57, David Mitchell wrote:
>
>>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
>
>Yes but under offset it comes as Two dimensional array right? Thanks.
No, it uses a one dimensional array.
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.