ggp_rs::MoveResult [−] [src]

type MoveResult<T> = Result<T, Move>;

This type meant to be used in GGP players for returning a move when time runs out. For functions that would normally have a return type T, you can return a MoveResult<T> instead. On normal execution, an Ok(T) can be returned, and when out of time an Err(Move) can be returned. You can implement this logic yourself or just use the provided check_time_result! macro.