64
}
}
Ta bles de Transposition
alpha = max (alpha , -tl -> s core );
virus . dejoue (* it );
if (alpha >= be ta ) return be ta ;
/* on teste le coup de transposition en premier */
if ( t != NULL && alpha < be ta )
if (virus . coupLegal (transpoMove ))
joueAlphaBeta ( transpoMove , depth , alpha , beta ,
joueur , vp );
if (alpha < beta ) {
listeCoups . sort ();
}
for (list :: iterator it = listeCoups .begin ();
( i t ! = 1 i s te Co u p s . end () ) && ( a 1 p h a < be t a ) ; ++ i t )
if (( t == NULL ) 11 ( *Ï t != transpoMove ))
joueAlphaBeta (* it , depth , alpha , beta , joueur , vp );
if (alpha >= be ta )
TI. add (& virus , depth , alpha , * Yp . begin () , fa Ise );
else if (!vp.empty ())
TI. add (& virus , depth , alpha , *Yp . begin () , true );
else if (! listeCoups .empty ())
TI. add (& virus , depth , alpha , *listeCoups . begin () ,
true );
el se
cerr << "bug \ n" ;
return alpha ;
Précédent

- 78/256

Suivant