toChineseTree method

List<String> toChineseTree(
  1. List<String> moves
)

A list of moves to chinese

Implementation

List<String> toChineseTree(List<String> moves) {
  ChessFen start = copy();
  List<String> results = [];
  for (var move in moves) {
    results.add(start.toChineseString(move));
    start.move(move);
  }
  return results;
}