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; } }
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; }
private void changePlayerTurn() { if (m_Turn == eCurrentTurn.WhiteOpponentTurn) { m_Turn = eCurrentTurn.BlackOpponentTurn; } else { m_Turn = eCurrentTurn.WhiteOpponentTurn; } }