Beispiel #1
0
 private void OnChangeTurn(PlayerTurn m_Turn)
 {
     if (ChangeTurn != null)
     {
         ChangeTurn.Invoke(m_Turn);
     }
 }
Beispiel #2
0
        public Engine(int i_BoardSize, bool i_ComputerPlayer, string i_PlayerOneName, string i_PlayerTwoName)
        {
            m_Turn     = new PlayerTurn(PlayerTurn.ePlayerTurn.PlayerX);
            m_Board    = new char[i_BoardSize, i_BoardSize];
            m_Handlers = new MarkNotifier[i_BoardSize, i_BoardSize];

            m_PlayerOneName = i_PlayerOneName;
            m_PlayerTwoName = i_PlayerTwoName;
            initializeBoard();
            if (i_ComputerPlayer)
            {
                m_ComputerOponent = new AiPlayer(m_Board);
            }
        }