// Get game end status // Null: Not end! public static ChineseChessStatusEnum?GetGameEndStatus(ChineseChessAgent agent) { var myPieces = agent.MyPieces; var oppoPieces = agent.OppoPieces; var boardState = agent.BoardState; return(GetGameEndStatusByState(myPieces, oppoPieces, boardState, agent.Team)); }
public void SetOppoAgent(ChineseChessAgent oppoAgent) { OppoAgent = oppoAgent; OppoPieces = oppoAgent.MyPieces; }