mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
fixed ko bug
This commit is contained in:
parent
ac46d97351
commit
0a252433b8
2
src/go.c
2
src/go.c
@ -117,7 +117,7 @@ void update_board(float *board)
|
|||||||
int i;
|
int i;
|
||||||
int *l = calculate_liberties(board);
|
int *l = calculate_liberties(board);
|
||||||
for(i = 0; i < 19*19; ++i){
|
for(i = 0; i < 19*19; ++i){
|
||||||
if (board[i] && !l[i]) board[i] = 0;
|
if (board[i] < 0 && !l[i]) board[i] = 0;
|
||||||
}
|
}
|
||||||
free(l);
|
free(l);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user