PgnEvaluation class

Pgn representation of a move evaluation.

A PgnEvaluation can be created used .pawns or .mate contructor.

Annotations
  • @immutable

Constructors

PgnEvaluation.mate({required int? mate, int? depth, double? pawns, EvalType evalType = EvalType.mate})
Constructor to create a PgnEvaluation of type mate.
const
PgnEvaluation.pawns({required double? pawns, int? depth, int? mate, EvalType evalType = EvalType.pawns})
Constructor to create a PgnEvaluation of type pawns.
const

Properties

depth int?
final
evalType EvalType
final
hashCode int
The hash code for this object.
no setteroverride
mate int?
final
pawns double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isPawns() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPgn() String
Create a PGN evaluation string
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override