private void OverTheBoardGame_Load(object sender, EventArgs e) { user_name_label.Text = /*Properties.Settings.Default.offline_user_name*/ this.user_name; opponents_name_label.Text = /*Properties.Settings.Default.offline_opponents_name*/ this.opponents_name; this.board = new Chessboard(ref board_panel); board.Load(); board.PositionateStart(); //user_stone_picturebox.Image = if (this.user_color == PlayerColor.White) { user_stone_picturebox.Image = this.board.WhiteStoneStyle; opponents_stone_picturebox.Image = this.board.BlackStoneStyle; } else if (this.user_color == PlayerColor.Black) { user_stone_picturebox.Image = this.board.BlackStoneStyle; opponents_stone_picturebox.Image = this.board.WhiteStoneStyle; } /*TimeSpan time_control = new TimeSpan(0, Properties.Settings.Default.offline_game_time_control, 0);*/ this.overTheBoardAlgorithm = new OverTheBoardAlgorithm(this); overTheBoardAlgorithm.Apply(); }
public Clicker(int x, int y, OverTheBoardAlgorithm algorithm) { this.squareCoordinates = new Point(x, y); this.algorithm = algorithm; }
public Clicker(Point squareCoordinates, OverTheBoardAlgorithm algorithm) { this.squareCoordinates = squareCoordinates; this.algorithm = algorithm; }