
com.fathzer.games.ai.time.TimeManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of games-core Show documentation
Show all versions of games-core Show documentation
A core library to help implement two players games.
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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy