void StartButtonClick(object sender, EventArgs e) { MainForm m = new MainForm(option); m.Closed += (s, args) => this.Close(); this.Hide(); m.Show(); }
Dictionary<ulong[][], int> transTable; //stores transpositions - pre-calculated positions we've already searched for and already know the point value of #endregion Fields #region Constructors public AI(ChessBoard c, bool isWhite, int searchDepth, MainForm f) { transTable = new Dictionary<ulong[][], int>(); expectedMovesTable = new Dictionary<ulong[][], int[]>(); this.searchDepth = searchDepth; gui = f; }
public void setMainForm(MainForm mf) { this.mainForm = mf; }
public ChessBoardDisplay(MainForm f) { frm = f; c = new ChessBoard(null, null); }