示例#1
0
文件: Form1.cs 项目: vucat12/gameCaro
        private void NewGame()
        {
            tmCountDown.Stop();
            prcbCountDown.Value = 0;
            ChessBoardManager a = new ChessBoardManager(pnlChessBoard, txbPlayerName, ptcbMark, prcbCountDown);

            a.DrawChessBoard();
        }
示例#2
0
文件: Form1.cs 项目: vucat12/gameCaro
        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();
        }
示例#3
0
        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;
        }
示例#4
0
        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();
        }