Struct UCIEngine.Info
Information, sent by the engine during analyzing
Inherited Members
Namespace: PonzianiComponents.Chesslib
Assembly: PonzianiComponents.dll
Syntax
public struct Info
Properties
| Improve this Doc View SourceCurrentMove
Currently analyzed move (in UCI notation)
Declaration
public string CurrentMove { readonly get; }
Property Value
Type | Description |
---|---|
System.String |
CurrentMoveNumber
Currently searching move number x, for the first move x should be 1 not 0
Declaration
public int CurrentMoveNumber { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Depth
Current analysis depth
Declaration
public int Depth { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Evaluation
Engine score in Centipawns (from engine's point of view)
Declaration
public int Evaluation { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
MateDistance
Mate distance (Mate in x moves)
Declaration
public int MateDistance { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxDepth
Current maximal analysis depth reached for selected search branches
Declaration
public int MaxDepth { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
MoveIndex
If engine runs in MultiPV mode (analyzing more than one next move) the move's index
Declaration
public int MoveIndex { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Nodes
Number of Nodes searched
Declaration
public long Nodes { readonly get; }
Property Value
Type | Description |
---|---|
System.Int64 |
NodesPerSecond
Search speed in (nodes/second)
Declaration
public long NodesPerSecond { readonly get; }
Property Value
Type | Description |
---|---|
System.Int64 |
PrincipalVariation
Principal Variation
Declaration
public string PrincipalVariation { readonly get; }
Property Value
Type | Description |
---|---|
System.String |
TableBaseHits
Number of table base hits
Declaration
public long TableBaseHits { readonly get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Time
Current Search Time (in milliseconds)
Declaration
public int Time { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Evaluation Type
Declaration
public UCIEngine.Info.EvaluationType Type { readonly get; }
Property Value
Type | Description |
---|---|
UCIEngine.Info.EvaluationType |
Methods
| Improve this Doc View SourceIndex(String)
Determines the MultiPV (resp. line) Index from an engine's info message
Declaration
public static int Index(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The info message issued by the engine |
Returns
Type | Description |
---|---|
System.Int32 | the 0-based line index (multipv 1 will give 0) |
ScoreText(Side)
Textual representation of Score (with representations for mate scores and upper-/lowerbound scores)
Declaration
public string ScoreText(Side side = Side.WHITE)
Parameters
Type | Name | Description |
---|---|---|
Side | side | Side to Move (has to be provided, to get score from white's POV) |
Returns
Type | Description |
---|---|
System.String | Score as text |
Update(String, Side)
Updates an existing Info objekt from a new info message
Declaration
public bool Update(string message, Side side = Side.WHITE)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The info message issued by the engine |
Side | side | Side to Move |
Returns
Type | Description |
---|---|
System.Boolean | true, if new evaluation information was part of the info message |