All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fathzer.games.ai.time.TimeManager Maven / Gradle / Ivy

The newest version!
package com.fathzer.games.ai.time;

import com.fathzer.games.clock.CountDownState;

/** The interface of a class able to compute how much time to allocate to next move search.
 * @param  The type of the data used by the time manager.
 */
public interface TimeManager {
	/** Gets the time the allocate to next move search.
	 * @param data The data requested to compute the result (usually the game's current state)
	 * @param countDown The of state of the player's count down. 
	 * @return A positive long
	 */
	long getMaxTime(B data, CountDownState countDown);
}