internal void ChangePlayerTurn()
 {
     if (m_Turn == eCurrentTurn.WhiteOpponentTurn)
     {
         m_Turn = eCurrentTurn.BlackOpponentTurn;
     }
     else
     {
         m_Turn = eCurrentTurn.WhiteOpponentTurn;
     }
 }
 internal void CleanOpponents()
 {
     m_Turn = eCurrentTurn.WhiteOpponentTurn;
     m_humanFirstOpponent = null;
     if (m_CompOpponent == null)
     {
         m_humanSecondOpponent = null;
     }
     else
     {
         m_CompOpponent = null;
     }
 }
Example #3
0
        private void endGame()
        {
            byte amountOfWhiteTokens;
            byte amountOfBlackTokens;

            this.updateAvailableSquares();
            this.countingPlayersTokens(out amountOfWhiteTokens, out amountOfBlackTokens);
            this.OnGameOver(new GameOverArgs(amountOfWhiteTokens, amountOfBlackTokens));
            this.m_Turn = eCurrentTurn.BlackOpponentTurn;
        }
Example #4
0
 private void changePlayerTurn()
 {
     if (m_Turn == eCurrentTurn.WhiteOpponentTurn)
     {
         m_Turn = eCurrentTurn.BlackOpponentTurn;
     }
     else
     {
         m_Turn = eCurrentTurn.WhiteOpponentTurn;
     }
 }