Esempio n. 1
0
        private void FieldButtonClick(object sender, MouseEventArgs e)
        {
            FieldButton currentButton = (FieldButton)sender;

            //MessageBox.Show($"{currentButton.X} {currentButton.Y}");

            (int, int)sizeOfField = SelectSizeOfField();
            int sizeOfHigh  = sizeOfField.Item1;
            int sizeOfWidth = sizeOfField.Item2;

            logicGame = new LogicGame(2, sizeOfHigh, sizeOfWidth);

            logicGame.CapturingCell(1, currentButton.X, currentButton.Y);
        }
Esempio n. 2
0
 public GameComputerPlayer(int playerId, LogicGame logicGame)
 {
     this.logicGame = logicGame;
     this.playerId  = playerId;
 }