// 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; } }
// 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"; }
// Menu Handler private void mnuNewGame_Click(object sender, System.EventArgs e) { this.listView1.ResetText(); GameObj.NewGame(); // Initialize the new game }
// 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 }