コード例 #1
0
ファイル: ChessMain.cs プロジェクト: Deathblade226/Chess
        // Menu Handler
        private void mnuNewGame_Click(object sender, System.EventArgs e)
        {
            GameObj.NewGame();                  // Initialize the new game

            // Initialize computer player characterstics
            if (GameObj.ChessGame != null)
            {
                GameObj.ChessGame.DoNullMovePruning    = mnCompNullMove.Checked;
                GameObj.ChessGame.DoPrincipleVariation = mnuCompPrincipleVar.Checked;
                GameObj.ChessGame.DoQuiescentSearch    = mnuCompQuiescentSearch.Checked;
            }
        }
コード例 #2
0
 // Menu Handler
 private void mnuNewGame_Click(object sender, System.EventArgs e)
 {
     GameObj.NewGame();                  // Initialize the new game
     Rules.whiteStartCounting = false;
     Rules.blackStartCounting = false;
     this.menuItem3.Checked   = false;
     this.menuItem3.Text      = "White Start Counting";
     this.menuItem4.Checked   = false;
     this.menuItem4.Text      = "Black Start Counting";
 }
コード例 #3
0
 // Menu Handler
 private void mnuNewGame_Click(object sender, System.EventArgs e)
 {
     this.listView1.ResetText();
     GameObj.NewGame();                  // Initialize the new game
 }
コード例 #4
0
ファイル: ChessMain.cs プロジェクト: s-martel/Monstralia
 // Chess board load event. Initialize all the chess positions
 private void ChessMain_Load(object sender, System.EventArgs e)
 {
     GameObj = new GameUI(this);
     this.mnuShowMoveHelp.Checked = GameObj.ShowMoveHelp;
     GameObj.NewGame();// Show the check box
 }