コード例 #1
0
        /// <summary>
        /// Called when black has performed a move.
        /// </summary>
        public void EndBlackTurn()
        {
            m_blackTimer.Stop();

            m_undoHistory.Push(m_currentState);
            m_redoHistory.Clear();
        }
コード例 #2
0
        /// <summary>
        /// Called when white has performed a move.
        /// </summary>
        public void EndWhiteTurn()
        {
            m_whiteTimer.Stop();

            m_undoHistory.Push(m_currentState);
            m_redoHistory.Clear();
        }