예제 #1
0
 void StartButtonClick(object sender, EventArgs e)
 {
     MainForm m = new MainForm(option);
     m.Closed += (s, args) => this.Close();
     this.Hide();
     m.Show();
 }
예제 #2
0
파일: AI.cs 프로젝트: sscheele/chess-AI
        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;
        }
예제 #3
0
파일: Board.cs 프로젝트: mariocervera/Chess
 public void setMainForm(MainForm mf)
 {
     this.mainForm = mf;
 }
예제 #4
0
 public ChessBoardDisplay(MainForm f)
 {
     frm = f;
     c = new ChessBoard(null, null);
 }