toString

open override fun toString(): String

Returns a single-character string representation of the piece. Uppercase for white, lowercase for black.

Return

The character representing the piece type and color.