fixed ko bug

This commit is contained in:
Joseph Redmon 2016-03-13 23:31:21 -07:00
parent ac46d97351
commit 0a252433b8

View File

@ -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);
} }