LMR implementation
Posted: 08 Feb 2008, 10:11
Can you take a look to my LMR implementation.
Sems ok?
Sems ok?
alfabeta (int alfa,int beta,int depth,int ply,int tipe)
{
nmov=0;
...
mov(tree[i]);
nmov++;
if ((nmov>=5)&&(ply>=3)&&(!(tipe&CHECK)))
{
ev=-alfabeta(-alfa-1,-alfa,depth-2,ply+1,tipe);
if ((ev>-beta)&&(ev<-alfa)) ev=-alfabeta( -beta,-alfa,depth-1,ply+1,tipe);
}
else ev=-alfabeta(-beta,-alfa,depth-1,ply+1,tipe);
unmov();
...
}