Ejemplo n.º 1
0
 void StartButtonClick(object sender, EventArgs e)
 {
     MainForm m = new MainForm(option);
     m.Closed += (s, args) => this.Close();
     this.Hide();
     m.Show();
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public void setMainForm(MainForm mf)
 {
     this.mainForm = mf;
 }
Ejemplo n.º 4
0
 public ChessBoardDisplay(MainForm f)
 {
     frm = f;
     c = new ChessBoard(null, null);
 }