public MainForm() { InitializeComponent(); game = new LightsOutGame(); game.NewGame(); }
private void NewGameButton_Click(object sender, EventArgs e) { game.NewGame(); // Redraw the grid Invalidate(); }
private void StartNewGame() { game.NewGame(); // Redraw the grid Invalidate(); }
private void newGameButton_Click(object sender, EventArgs e) { // Fill grid with either white or black _game.NewGame(); // Redraw grid this.Invalidate(); }
private void newGameButton_Click(object sender, System.EventArgs e) { game.NewGame(); // Redraw grid this.Invalidate(); }
private void StartNewGame() { game.NewGame(); // Redraw grid this.Invalidate(); }
private AboutForm aboutBox; // About dialog box public MainForm() { InitializeComponent(); game = new LightsOutGame(); game.NewGame(); // Default to 3x3 grid x3ToolStripMenuItem.Checked = true; }
private void newGameButton_Click(object sender, EventArgs e) { game.NewGame(); //for (int r = 0; r < NumCells; r++) // for (int c = 0; c < NumCells; c++) // grid[r, c] = rand.Next(2) == 1; this.Invalidate(); }
private void newGameButton_Click(object sender, EventArgs e) { lightsOutGame.NewGame(); // Fill grid with either white or black for (int r = 0; r < NumCells; r++) { for (int c = 0; c < NumCells; c++) { grid[r, c] = lightsOutGame.GetGridValue(r, c); } } // Redraw grid this.Invalidate(); }
//private bool[,] grid; //private Random rand; public MainForm() { InitializeComponent(); game = new LightsOutGame(); game.NewGame(); //rand = new Random(); //grid = new bool[NumCells, NumCells]; //for (int r = 0; r < NumCells; r++) // for (int c = 0; c < NumCells; c++) // grid[r, c] = true; }
private void NewGameButton_Click(object sender, EventArgs e) { game.NewGame(); this.Invalidate(); }
private void StartNewGame() { game.NewGame(); Invalidate(); }
private void NewToolStripMenuItem_Click(object sender, EventArgs e) { lightsOut.NewGame(); this.Invalidate(); }
public MainForm() { CellLength = GridLength / game.GridSize; InitializeComponent(); game.NewGame(); }
private void MenuNew_Click(object sender, RoutedEventArgs e) { game.NewGame(); DrawGrid(); }