File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -988,9 +988,9 @@ InterruptionCheck( void )
988
988
static bool
989
989
ExtendTime ( const int moves )
990
990
{
991
- int max = 0 , second = 0 ;
992
991
const int child_num = uct_node[current_root].child_num ;
993
- child_node_t *uct_child = uct_node[current_root].child ;
992
+ const child_node_t *uct_child = uct_node[current_root].child ;
993
+ int max = 0 , second = 0 ;
994
994
995
995
if (moves < pure_board_size * 3 - 17 || !extend_time) {
996
996
return false ;
@@ -1024,15 +1024,11 @@ ExtendTime( const int moves )
1024
1024
static void
1025
1025
ParallelUctSearch ( thread_arg_t *arg )
1026
1026
{
1027
- thread_arg_t *targ = (thread_arg_t *)arg;
1028
- game_info_t *game;
1029
- int color = targ->color ;
1030
- bool interruption = false ;
1031
- bool enough_size = true ;
1032
- int winner = 0 ;
1033
- int interval = CRITICALITY_INTERVAL;
1034
-
1035
- game = AllocateGame ();
1027
+ const thread_arg_t *targ = (thread_arg_t *)arg;
1028
+ const int color = targ->color ;
1029
+ bool interruption = false , enough_size = true ;
1030
+ int winner = 0 , interval = CRITICALITY_INTERVAL;
1031
+ game_info_t *game = AllocateGame ();
1036
1032
1037
1033
// スレッドIDが0のスレッドだけ別の処理をする
1038
1034
// 探索回数が閾値を超える, または探索が打ち切られたらループを抜ける
You can’t perform that action at this time.
0 commit comments