toAlgebraic function

String toAlgebraic(
  1. Square square
)

Returns the algebraic coordinate notation of the Square.

Implementation

String toAlgebraic(Square square) =>
    kFileNames[squareFile(square)] + kRankNames[squareRank(square)];