コード例 #1
0
 public void OnYourTurn()
 {
     if (turn == 棋子.黑子)
     {
         ChessPannel panel = this.GetPanel();
         black.OnYourTurn(panel.Positions, panel.BlackList, panel.WhiteList);
     }
     else if (turn == 棋子.白子)
     {
         ChessPannel panel = this.GetPanel();
         white.OnYourTurn(panel.Positions, panel.BlackList, panel.WhiteList);
     }
 }
コード例 #2
0
        public bool JudgeEqual()
        {
            ChessPannel panel = this.GetPanel();

            for (int i = 0; i < panel.Positions.Length; i++)
            {
                for (int j = 0; j < panel.Positions.Length; j++)
                {
                    if (panel.Positions[i][j] == 棋子.无)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }