コード例 #1
0
        public bool PlayChoise(bool i_FirstPlayerTurn, Point i_FirstChoise, Point i_SecondChoise)
        {
            bool isMatch;

            m_GameBoard.FlipSlot(i_SecondChoise);

            if (isMatch = m_GameBoard.IsMatch(i_FirstChoise, i_SecondChoise))
            {
                m_AvailableSlots.Remove(i_FirstChoise);
                m_AvailableSlots.Remove(i_SecondChoise);
                if (i_FirstPlayerTurn)
                {
                    m_FirstPlayer.AddPoint();
                }
                else
                {
                    m_SecondPlayer.AddPoint();
                }
            }

            return(isMatch);
        }