Пример #1
0
 public void RevealCellState(CellGuessHandler i_Guess, bool i_RevealCells, Player i_PlayerReveal = null)
 {
     for (int i = 0; i < i_Guess.CurrentGuess; i++)
     {
         r_CurrentBoard[i_Guess.GetRowGuess(i), i_Guess.GetColumnGuess(i)].RevealState(i_RevealCells, i_PlayerReveal);
     }
 }
Пример #2
0
        public bool RevealCellsIfEqual(CellGuessHandler i_Guess, Player i_PlayerReveal)
        {
            string firstCellValue  = r_CurrentBoard[i_Guess.GetRowGuess(0), i_Guess.GetColumnGuess(0)].GetStringIfRevealed(true);
            string secondCellValue = r_CurrentBoard[i_Guess.GetRowGuess(1), i_Guess.GetColumnGuess(1)].GetStringIfRevealed(true);
            bool   isReavling      = firstCellValue == secondCellValue;

            if (isReavling)
            {
                RevealCellState(i_Guess, true, i_PlayerReveal);
                m_RevealedCells += 2;
            }

            return(isReavling);
        }
Пример #3
0
 public GameManager()
 {
     r_MatchManager     = new MatchHandler();
     r_CellGuessManager = new CellGuessHandler();
 }