private void NewGame() { tmCountDown.Stop(); prcbCountDown.Value = 0; ChessBoardManager a = new ChessBoardManager(pnlChessBoard, txbPlayerName, ptcbMark, prcbCountDown); a.DrawChessBoard(); }
public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, ptcbMark, prcbCountDown); prcbCountDown.Step = Cons.Cool_Down_Step; prcbCountDown.Maximum = Cons.Cool_Down_Time; prcbCountDown.Value = 0; tmCountDown.Interval = Cons.Cool_Down_Interval; ChessBoard.DrawChessBoard(); }
public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; ChessBoard = new ChessBoardManager(this.pnlChessBroard, this); ChessBoard.MaxGame = 5; Computer.MAXDEPTH = 5; ChessBoard.GameMode = 1; ChessBoard.Ready = false; ChessBoard.SymbolPlayerIsX = true; pgbO.Step = pgbX.Step = Cons.TM_STEP; pgbO.Maximum = pgbX.Maximum = Cons.TM_MAX; pgbO.Value = pgbX.Value = 0; tmO.Interval = tmX.Interval = Cons.TM_INTERVAL; level1ToolStripMenuItem.Checked = true; }
public int[] DScore = { 0, 1, 9, 81, 729, 6561, 59049 }; // Mang diem phong ngu #endregion #region Initialize public Computer(ChessBoardManager board) { this.boardState = board; this.eBoard = new EvalBoard(); this.Move = new EvalBoard(); }