Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: TCSP move generator

Author: Uri Blass

Date: 05:05:16 05/11/03

Go up one level in this thread


On May 09, 2003 at 18:52:06, John Boyd wrote:

>On May 09, 2003 at 09:17:35, Geoff wrote:
>
>>Hi
>>
>>That would makes sense as I am using MS Visual Studio version 5
>>
>>>What compiler are you using? I think (as I read in other forums) MS have not >the problem. People say is a compiler dependient issue.
>>
>>Changing the subject slightly, how did you get on with adding NULL move to TSCP
>>? I have just tried that mod, it is surprisingly little code but has introduced
>>2 nasty bugs that I cannot understand at the moment.
>>
>>1) Some test positions cause a fault where the seach never returns.
>>
>>2) If the time elapses the timeout code that corrects for the fact that we were
>>x ply down into the search no longer works properly
>>
>>Still trying to figure this out, trying to debug Null move code is tricky to say
>>the least !!
>>
>>          Geoff
>
>Hi Geoff,
>
>One area to look is in takeback().  The standard TSCP takeback() code assumes
>that the side to move alternates between black and white but this won't do.
>Somehow you have to detect who just moved.

I see no difference between normal takeback and null move take back.
In both cases I change the side to move.

I did not start from tscp and changed but the structure of movei is similiar to
the structure of tscp.

I did not have problems with null move.

I have 2 small function to make and unmake null move(different than what Tom
suggested)

I update the zobrist key(need to care about en passent),side to move(when I make
null move or unmake it) and I also update the information about pieces that are
pinned for generating legal moves in the next ply.

Note that the last thing may be done faster by remembering the list of pinned
pieces of both sides and update it incrementally but at this point I prefer to
work about other things and not about this.

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.