char method

String char(
  1. Colour colour
)

The symbol of this piece definition, respecting its colour.

Implementation

String char(Colour colour) =>
    colour == Bishop.white ? symbol.toUpperCase() : symbol.toLowerCase();