gochatai/pachi_py/pachi/board.c
/* Recompute traits for dirty points that we have previously touched
 * somehow (libs of their neighbors changed or so). */
Recompute traits for dirty points that we have previously touched
somehow (libs of their neighbors changed or so).
Recompute traits for dirty points that we have previously touched somehow ( libs of their neighbors changed or so ) .
static void
board_traits_recompute(struct board *board)
{
#ifdef BOARD_TRAITS
	for (int i = 0; i < board->tqlen; i++) {
		coord_t coord = board->tq[i];
		trait_at(board, coord, S_BLACK).dirty = false;
		if (board_at(board, coord) != S_NONE)
			continue;
		board_trait_recompute(board, coord);
	}
	board->tqlen = 0;
#endif
}
static void board_traits_recompute ( struct board * board ) { #ifdef BOARD_TRAITS for ( int i = 0 ; i < board -> tqlen ; i ++ ) { coord_t coord = board -> tq [ i ] ; trait_at ( board , coord , S_BLACK ) . dirty = false ; if ( board_at ( board , coord ) != S_NONE ) continue ; board_trait_recompute ( board , coord ) ; } board -> tqlen = 0 ; #endif }
Recompute traits for dirty points that we have previously touched
 somehow (libs of their neighbors changed or so).
Recompute traits for dirty points that we have previously touched somehow ( libs of their neighbors changed or so ) .