Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chess-Challenge/src/API/Board.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace ChessChallenge.API

public sealed class Board
{
readonly Chess.Board board;
readonly internal Chess.Board board;
readonly APIMoveGen moveGen;

readonly HashSet<ulong> repetitionHistory;
Expand Down
4 changes: 4 additions & 0 deletions Chess-Challenge/src/API/Move.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public override string ToString()
return $"Move: '{moveName}'";
}

public string GetSAN(Board board) {
return MoveUtility.GetMoveNameSAN(this.move, board.board);
}

/// <summary>
/// Tests if two moves are the same.
/// This is true if they move to/from the same square, and move/capture/promote the same piece type
Expand Down