whether the team team can do checkmate 检查方是否能将军
team
bool teamCanCheck(int team) { return fen .getAll() .any((item) => item.team == team && itemCanCheck(item.position, team)); }