ScoredTurn

dicechess.engine.jvmapi.JvmApi.ScoredTurn
final case class ScoredTurn(uci: List[String], finalState: GameState, score: Int)

One legal turn plus the score the bot that chose it assigned to the resulting position — bestTurn's result, and the JVM counterpart of the JS getBestMove's { moves, score }.

uci and finalState mean exactly what they do on Turn, finalState included: it has '''not''' been passed through endTurn.

'''score is on the scale of the bot that produced it, and on no other.''' Only the sign and the ordering are common to all of them: higher is better for the side that played the turn, and Integer.MAX_VALUE means the turn captures the opponent's king. The unit is not: the material-scoring bots (greedy, greedy-v2, aggressive, checkmate-aware) return centipawns comparable with evaluate, while monte-carlo returns an estimated win probability scaled to 0–1000000, where a level position sits near 500000. Compare scores only among turns from one call to one algorithm; reading a monte-carlo score as centipawns overstates the position by three orders of magnitude.

Attributes

Source
JvmApi.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