public Column(int column, int rowCount, FourInARowFormController controller) { _controller = controller; _column = column; Left = column * Cell.CellRadius; Top = Cell.CellRadius * rowCount + 100; Width = Cell.CellRadius; Height = 50; //Cell.CellRadius * rowCount; }
public BoardPanel(FourInARowFormController controller) { BackColor = Color.DarkCyan; _controller = controller; var board = controller.GetBoard(); Width = board.ColumnCount() * Cell.CellRadius; Height = board.RowCount() * Cell.CellRadius + 140; CreateBoardVisualisation(board); }
public EditPanel(FourInARowFormController controller) { _controller = controller; FlowDirection = FlowDirection.LeftToRight; kickStartButton = new Button(); kickStartButton.Click += new EventHandler(kickStartButton_Clicked); kickStartButton.Text = "Force bot"; undoButton = new Button(); undoButton.Enabled = false; undoButton.Click += new EventHandler(undoButton_Clicked); undoButton.Text = "Undo"; Controls.Add(undoButton); }
public StatisticsPanel(FourInARowFormController controller) { _controller = controller; _playerTimes = new TextBox[2]; Width = ListWidth * 2; Height = ListHeight; _playerTimes[0] = new TextBox { Width = ListWidth, Height = ListHeight }; _playerTimes[1] = new TextBox { Width = ListWidth, Height = ListHeight, Left = ListWidth }; }
public Bot(FourInARowFormController controller, int player) { _controller = controller; _me = player; _strategy = new AlphaBetaStrategyWithOrdering(new ImmediateEvaluatorOnlyEmptyCells(), 4); }
public FourInARowForm(FourInARowFormController controller) { this.controller = controller; InitializeComponent(); }