gochatai/pachi_py/pachi/timeinfo.c
/* Returns true if we are in byoyomi (or should play as if in byo yomi
 * because remaining time per move in main time is less than byoyomi time
 * per move). */
Returns true if we are in byoyomi (or should play as if in byo yomi
because remaining time per move in main time is less than byoyomi time
per move).
Returns true if we are in byoyomi ( or should play as if in byo yomi because remaining time per move in main time is less than byoyomi time per move ) .
static bool
time_in_byoyomi(struct time_info *ti) {
	assert(ti->dim == TD_WALLTIME);
	if (!ti->len.t.byoyomi_time)
		return false; 
	assert(ti->len.t.byoyomi_stones > 0);
	if (!ti->len.t.main_time)
		return true; 
	if (ti->len.t.main_time <= ti->len.t.byoyomi_time / ti->len.t.byoyomi_stones + 0.001)
		return true; 
	return false;
}
static bool time_in_byoyomi ( struct time_info * ti ) { assert ( ti -> dim == TD_WALLTIME ) ; if ( ! ti -> len . t . byoyomi_time ) return false ; assert ( ti -> len . t . byoyomi_stones > 0 ) ; if ( ! ti -> len . t . main_time ) return true ; if ( ti -> len . t . main_time <= ti -> len . t . byoyomi_time / ti -> len . t . byoyomi_stones + 0.001 ) return true ; return false ; }
Returns true if we are in byoyomi (or should play as if in byo yomi
 because remaining time per move in main time is less than byoyomi time
 per move).
Returns true if we are in byoyomi ( or should play as if in byo yomi because remaining time per move in main time is less than byoyomi time per move ) .
// there is no byoyomi! // we _are_ in byoyomi // our basic time left is less than byoyomi time per move