Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: C++ chess toolkit code example: check evasion move generation

Author: Uri Blass

Date: 08:48:08 08/19/03

Go up one level in this thread


On August 19, 2003 at 11:39:10, Heiner Marxen wrote:

>On August 19, 2003 at 00:28:35, Steven Edwards wrote:
>
>>The C++ chess programming toolkit "CT"  foundation classes continue in their
>>slow but hopefully sure development. I've included here a sample: the
>>GeneratePsuedolegalEvasionMoveList method of the CTBBDB (bitboard database)
>>class.  It has proven fairly effective at avoiding generating psuedolegal but
>>illegal moves except for perhaps an occasional invalid en passant capture.  I'll
>>be fixing this later.
>>
>>
>>CTMoveList *CTBBDB::GeneratePsuedolegalEvasionMoveList(const CTTRIndex
>
>You consistently misspell "pseudo" as "psuedo"... or is it intended?
>
>It is hard to appreciate a code snippet out of context, so I restrict myself
>to one comment:  I really dislike duplicating code for the wtm and btm cases,
>I think the code should be parameterized and/or indexed.
>
>Otherwise, I think I will have a close look at CT when you release it.
>Looks promising.
>
>Cheers,
>Heiner

I have specific code for white pawns and for black moves.
Originally I did not have it but changing my program to have it was one of the
things that made it faster.

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.