Ejemplo n.º 1
0
        private void newGameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            game  = new GamePuzzles();
            moves = 0;
            for (int r = 0; r < 5; r++)
            {
                for (int c = 0; c < 5; c++)
                {
                    lightArray[r, c] = new Light(r, c, false);
                }
            }
            redraw();

            nextLevel();
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            game = new GamePuzzles();

            for (int r = 0; r < 5; r++)
            {
                for (int c = 0; c < 5; c++)
                {
                    lightArray[r, c] = new Light(r, c, false);
                }
            }
            redraw();

            nextLevel();
        }