static inline int ko_length()

in pachi_py/pachi/uct/policy/ucb1amaf.c [239:245]


static inline int ko_length(bool *ko_capture_map, int map_length)
{
	if (map_length <= 0 || !ko_capture_map[0]) return 0;
	int length = 1;
	while (length + 2 < map_length && ko_capture_map[length + 2]) length += 3;
	return length;
}