Esempio n. 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));
        }
Esempio n. 2
0
 public void SetOppoAgent(ChineseChessAgent oppoAgent)
 {
     OppoAgent  = oppoAgent;
     OppoPieces = oppoAgent.MyPieces;
 }