Turn

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

One complete legal turn: its micro-moves as UCI tokens, in order (e.g. ["e2e4"] or ["d2d4", "d4d5"]), and the position reached by playing all of them. finalState has '''not''' been passed through GameState.endTurn() — the active color has not flipped and the dice pool has not been cleared — because nothing in legalTurns's only current use (scoring candidate turns) needs a turn-ended state, and guessing at that boundary on a caller's behalf would be speculative.

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