Exemplo 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);
        }
Exemplo n.º 2
0
 public GameComputerPlayer(int playerId, LogicGame logicGame)
 {
     this.logicGame = logicGame;
     this.playerId  = playerId;
 }