RCS file: /home/arend/Go/gnugo-rsync/gnugo/engine/combination.c,v
retrieving revision 1.56
diff -u -p -r1.56 combination.c
|
|
|
atari_atari_blunder_size(int color, int |
| 408 | 408 | memset(forbidden, 0, sizeof(forbidden)); |
| 409 | 409 | memset(defense_points, 0, sizeof(defense_points)); |
| 410 | 410 | |
| 411 | | /* FIXME: Maybe these should be moved after the tryko() below? */ |
| 412 | | compute_aa_status(other, safe_stones); |
| 413 | | compute_aa_values(other); |
| 414 | | |
| 415 | 411 | /* Accept illegal ko capture here. */ |
| 416 | 412 | if (!tryko(move, color, NULL)) |
| 417 | 413 | /* Really shouldn't happen. */ |
| 418 | 414 | abortgo(__FILE__, __LINE__, "trymove", move); |
| | 415 | |
| | 416 | compute_aa_status(other, safe_stones); |
| | 417 | compute_aa_values(other); |
| | 418 | |
| 419 | 419 | increase_depth_values(); |
| 420 | 420 | |
| 421 | 421 | aa_val = do_atari_atari(other, &apos, &defense_point, defense_points, |
RCS file: /home/arend/Go/gnugo-rsync/gnugo/engine/move_reasons.c,v
retrieving revision 1.133
diff -u -p -r1.133 move_reasons.c
|
|
|
mark_safe_stones(int color, int move_pos |
| 1637 | 1637 | else |
| 1638 | 1638 | safe_stones[pos] = 0; |
| 1639 | 1639 | } |
| 1640 | | safe_stones[move_pos] = move[move_pos].move_safety; |
| | 1640 | safe_stones[move_pos] |
| | 1641 | = move[move_pos].move_safety && safe_move(move_pos, color) == WIN; |
| 1641 | 1642 | } |
| 1642 | 1643 | |
| 1643 | 1644 | |
RCS file: /home/arend/Go/gnugo-rsync/gnugo/engine/owl.c,v
retrieving revision 1.243
diff -u -p -r1.243 owl.c
|
|
|
owl_substantial(int str) |
| 5957 | 5957 | int result; |
| 5958 | 5958 | double start = 0.0; |
| 5959 | 5959 | struct local_owl_data *owl; |
| | 5960 | int num_moves = 0; |
| 5960 | 5961 | |
| 5961 | 5962 | if (debug & DEBUG_OWL_PERFORMANCE) |
| 5962 | 5963 | start = gg_cputime(); |
| … |
… |
owl_substantial(int str) |
| 5968 | 5969 | |
| 5969 | 5970 | owl->color = OTHER_COLOR(board[str]); |
| 5970 | 5971 | local_owl_node_counter = 0; |
| 5971 | | gg_assert(stackp == 0); |
| 5972 | 5972 | |
| 5973 | 5973 | /* Big strings are always substantial since the biggest nakade is |
| 5974 | 5974 | * six stones. (There are probably rare exceptions to this |
| … |
… |
owl_substantial(int str) |
| 6008 | 6008 | if (get_level() >= 8) |
| 6009 | 6009 | increase_depth_values(); |
| 6010 | 6010 | owl->goal[libs[k]] = 1; |
| | 6011 | num_moves++; |
| 6011 | 6012 | } |
| 6012 | 6013 | else { |
| 6013 | 6014 | /* if we can't fill, try swapping with the next liberty */ |
| … |
… |
owl_substantial(int str) |
| 6017 | 6018 | increase_depth_values(); |
| 6018 | 6019 | owl->goal[libs[k+1]] = 1; |
| 6019 | 6020 | libs[k+1] = libs[k]; |
| | 6021 | num_moves++; |
| 6020 | 6022 | } |
| 6021 | 6023 | else { |
| 6022 | 6024 | /* Can't fill the liberties. Give up! */ |
| 6023 | | while (stackp > 0) { |
| | 6025 | while (num_moves-- > 0) { |
| 6024 | 6026 | if (get_level() >= 8) |
| 6025 | 6027 | decrease_depth_values(); |
| 6026 | 6028 | popgo(); |
| … |
… |
owl_substantial(int str) |
| 6041 | 6043 | result = 0; |
| 6042 | 6044 | else |
| 6043 | 6045 | result = 1; |
| 6044 | | while (stackp > 0) { |
| | 6046 | while (num_moves-- > 0) { |
| 6045 | 6047 | if (get_level() >= 8) |
| 6046 | 6048 | decrease_depth_values(); |
| 6047 | 6049 | popgo(); |