Пример #1
0
        // 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));
        }
Пример #2
0
 public void SetOppoAgent(ChineseChessAgent oppoAgent)
 {
     OppoAgent  = oppoAgent;
     OppoPieces = oppoAgent.MyPieces;
 }