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