#include <limits.h>
#include "shogi.h"
-int
+int CONV
gen_next_move( tree_t * restrict ptree, int ply, int turn )
{
switch ( ptree->anext_move[ply].next_phase )
ibest = -1;
ptree->move_last[ply] = GenNoCaptures( turn, ptree->move_last[ply] );
ptree->move_last[ply] = GenDrop( turn, ptree->move_last[ply] );
+
n = (int)( ptree->move_last[ply] - ptree->anext_move[ply].move_last );
pmove = ptree->anext_move[ply].move_last;
for ( i = 0; i < n; i++ )
}
-int
+int CONV
gen_next_evasion( tree_t * restrict ptree, int ply, int turn )
{
switch ( ptree->anext_move[ply].next_phase )
{
if ( *( ptree->anext_move[ply].move_last ) )
{
- ptree->current_move[ply] = *(ptree->anext_move[ply].move_last++);
+ MOVE_CURR = *(ptree->anext_move[ply].move_last++);
return 1;
}
ptree->anext_move[ply].move_last++;