69 |
continue; |
continue; |
70 |
|
|
71 |
if (board[ii] && dragon[ii].status == CRITICAL |
if (board[ii] && dragon[ii].status == CRITICAL |
72 |
&& DRAGON2(ii).safety != INESSENTIAL) |
&& DRAGON2(ii).safety != INESSENTIAL) { |
73 |
critical_found = 1; |
critical_found = 1; |
74 |
|
DEBUG(DEBUG_SCORING, "critical dragon found at %1m\n", ii); |
75 |
|
} |
76 |
if (board[ii] == WHITE && !captured_territory(ii, color)) |
if (board[ii] == WHITE && !captured_territory(ii, color)) |
77 |
gb[ii] = 128; |
gb[ii] = 128; |
78 |
else if (board[ii] == BLACK && !captured_territory(ii, color)) |
else if (board[ii] == BLACK && !captured_territory(ii, color)) |
552 |
for (d = 0; d < DRAGON2(pos).neighbors; d++) |
for (d = 0; d < DRAGON2(pos).neighbors; d++) |
553 |
if (DRAGON(DRAGON2(pos).adjacent[d]).color == OTHER_COLOR(board[pos]) |
if (DRAGON(DRAGON2(pos).adjacent[d]).color == OTHER_COLOR(board[pos]) |
554 |
&& (DRAGON(DRAGON2(pos).adjacent[d]).status == ALIVE |
&& (DRAGON(DRAGON2(pos).adjacent[d]).status == ALIVE |
555 |
|| (board[pos] != color |
|| (DRAGON(DRAGON2(pos).adjacent[d]).status == UNKNOWN && |
556 |
&& DRAGON(DRAGON2(pos).adjacent[d]).status == CRITICAL))) |
dragon2[DRAGON2(pos).adjacent[d]].weakness < .1) |
557 |
|
|| (board[pos] != color |
558 |
|
&& DRAGON(DRAGON2(pos).adjacent[d]).status == CRITICAL))) |
559 |
return 1; |
return 1; |
|
|
|
560 |
return 0; |
return 0; |
561 |
} |
} |
562 |
|
|