Computer Chess Club Archives


Search

Terms

Messages

Subject: Movegen Re: Bitmap Type Re: Tinker 81 secs Re: Testing speed

Author: Brian Richardson

Date: 07:40:31 04/24/00

Go up one level in this thread


Move generation very much like Crafty, except with simple nand test instead of
rotated, precomputed vectors with (occupied) piece combinations.  Also, use
vcinline.h (see Crafty source) for very fast first/last bit implementation
using bsr/bsf.  Again, like somewhat slower eval tradeoff vs movegen, combining
bishops and queens may hurt some if I ever do SEE...

	froms=tree->wbishopsqueens;
	while(froms) {
	    f=LastOne(froms);
	    tos=And(bishopto[f],targets);
	    while (tos) {
		t=LastOne(tos);
		if (Nand(Allpieces,nopieces[f][t])) {
		    gen_push(f,t);
		}
		Clear(t,tos);
	    }
	    Clear(f,froms);
	}



This page took 0.03 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.