TimeBudget

dicechess.engine.search.TimeBudget
final case class TimeBudget(targetMs: Long, hardCapMs: Long)

The result of TimeManager.budget: the ideal per-turn target and the hard ceiling it was clamped to.

Value parameters

hardCapMs

the absolute per-turn ceiling (a fraction of the remaining clock) — the bot must never aim above this, so a single turn can never flag the clock

targetMs

the time the bot should aim to spend on this turn

Attributes

Source
TimeManager.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product