private void playerChooseDifferentTiles(MemoryGameButton i_BoardTileButton) { bool disableButtons = false; enableDisableButtonsPvPTurn(disableButtons); PicTimer.Start(); MemoryBoard.MakeTurnOpen(i_BoardTileButton.Row, i_BoardTileButton.Col); MemoryBoard.MakeRevealed(i_BoardTileButton.Row, i_BoardTileButton.Col, FirstChoiceButton.Row, FirstChoiceButton.Col); Turn = !Turn; SetCurrentPlayerName(); }
private void computerChooseDifferentTiles() { const bool k_EnableButtons = true; ComputerTimer.Stop(); MemoryBoard.MakeRevealed(FirstChoiceButton.Row, FirstChoiceButton.Col, SecondChoiceButton.Row, SecondChoiceButton.Col); TileButtonMatrix[FirstChoiceButton.Row, FirstChoiceButton.Col].Image = null; TileButtonMatrix[SecondChoiceButton.Row, SecondChoiceButton.Col].Image = null; TileButtonMatrix[FirstChoiceButton.Row, FirstChoiceButton.Col].BackColor = BackColor; TileButtonMatrix[SecondChoiceButton.Row, SecondChoiceButton.Col].BackColor = BackColor; Turn = !Turn; SetCurrentPlayerName(); enableDisableButtonsComputerTurn(k_EnableButtons); }