We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6003784 commit 76ed903Copy full SHA for 76ed903
Chess-Challenge/src/API/Board.cs
@@ -9,7 +9,7 @@ namespace ChessChallenge.API
9
10
public sealed class Board
11
{
12
- readonly Chess.Board board;
+ readonly internal Chess.Board board;
13
readonly APIMoveGen moveGen;
14
readonly RepetitionTable repetitionTable;
15
Chess-Challenge/src/API/Move.cs
@@ -59,6 +59,10 @@ public override string ToString()
59
return $"Move: '{moveName}'";
60
}
61
62
+ public string GetSAN(Board board) {
63
+ return MoveUtility.GetMoveNameSAN(this.move, board.board);
64
+ }
65
+
66
/// <summary>
67
/// Tests if two moves are the same.
68
/// This is true if they move to/from the same square, and move/capture/promote the same piece type
0 commit comments