예제 #1
0
 public Player(string i_Name, ePlayerID i_PlayerID, Board i_Board)
 {
     m_PlayerName         = i_Name;
     m_PlayerID           = i_PlayerID;
     m_Board              = i_Board;
     m_LastMove           = "";
     m_MovementValidation = new MovementValidation(this, m_Board);
     if (i_PlayerID == ePlayerID.Computer)
     {
         m_ArtificialIntelligence = new ArtificialIntelligence(this, m_Board);
     }
 }
예제 #2
0
 public ArtificialIntelligence(Player i_Player, Board i_Board)
 {
     m_AIPlayer           = i_Player;
     m_Board              = i_Board;
     m_MovementValidation = new MovementValidation(m_AIPlayer, m_Board);
 }