示例#1
0
        private void firstTileChoosenByComputer()
        {
            Point firstOpened = new Point();
            int   key;

            ComputerPlayer.ZeroAndUpdateRevealedTiles(MemoryBoard);
            firstOpened = ComputerPlayer.ChooseFirstTile(MemoryBoard);
            key         = MemoryBoard.GetKey(firstOpened.X, firstOpened.Y);
            TileButtonMatrix[firstOpened.X, firstOpened.Y].Image = GameManager.sr_ValueDictionary[key].Image;
            FirstChoiceButton           = TileButtonMatrix[firstOpened.X, firstOpened.Y];
            FirstChoiceButton.BackColor = Player2Name.BackColor;
            ComputerTurnState           = eComputerTurnState.SecondTileToChoose;
        }