private void endOfTurn(bool i_IsPairFound) { this.m_CountOfChoosingInTurn = eTurnChoosingStatus.NoChoosingYet; if (i_IsPairFound == true) { labelFirstPlayer.Text = getTextForLabelNumOfPointsOfPlayer(m_LogicMemoryGame.FirstPlayer); labelSecondPlayer.Text = getTextForLabelNumOfPointsOfPlayer(m_LogicMemoryGame.SecondPlayer); labelFirstPlayer.Refresh(); labelSecondPlayer.Refresh(); } else { hideBothCellsThatWereChosenInTurn(); updateCurrentPlayerSettings(); } enableAllCardsThatAreNotExposedYet(); }
private void roundInitialization() { this.m_LogicMemoryGame.RoundInitialization(m_LogicMemoryGame.GameBoard.Height, m_LogicMemoryGame.GameBoard.Width); buildBoardOfNoneExposedImages(); for (int i = 0; i < m_LogicMemoryGame.GameBoard.Height; i++) { for (int j = 0; j < m_LogicMemoryGame.GameBoard.Width; j++) { this.m_GameBoard[i, j].BackgroundImage = null; this.m_GameBoard[i, j].BackColor = r_CardColor; this.m_GameBoard[i, j].Enabled = true; } } this.updateCurrentPlayerSettings(); this.labelFirstPlayer.Text = getTextForLabelNumOfPointsOfPlayer(m_LogicMemoryGame.FirstPlayer); this.labelSecondPlayer.Text = getTextForLabelNumOfPointsOfPlayer(m_LogicMemoryGame.SecondPlayer); this.m_CountOfChoosingInTurn = eTurnChoosingStatus.NoChoosingYet; }