toStringAsBlack method
Returns a size by size looking String
of current _position
as
viewed by black player.
This function is for testing purposes only.
Implementation
String toStringAsBlack() {
String s = '';
for (int row = 0; row < size; row++) {
for (int col = size - 1; col >= 0; col--) {
s += at(row, col)?.fenSymbol ?? '*';
}
s += '\n';
}
return s;
}