Inheritance: GenerateNumber
 public void testGenOK3()
 {
     solve s = new solve();
     GenerateNumber g = new Generate4();
     LevelChooser lv = new Chooselv4();
     int[,] test = new int[4, 4];
     Assert.AreNotEqual(test, g.generatePosition(s.getSolve(), lv.selectedlv("Hard")));
 }
Esempio n. 2
0
 public void testgeneratePosition()
 {
     GenerateNumber gg = new Generate9();
     solve s = new solve();
     int[,] table = s.getSolve9x9();
     GenerateNumber g = new Generate4();
     g.generatePosition()
 }
Esempio n. 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            GenerateNumber gg = new Generate4();
            table = s.getSolve();
            mapArrayToTable(gg.generatePosition(table, valueLevel4x4));

            textBox1.BackColor = Color.White;
            textBox2.BackColor = Color.White;
            textBox3.BackColor = Color.White;
            textBox4.BackColor = Color.White;
            textBox5.BackColor = Color.White;
            textBox6.BackColor = Color.White;
            textBox7.BackColor = Color.White;
            textBox8.BackColor = Color.White;
            textBox9.BackColor = Color.White;
            textBox10.BackColor = Color.White;
            textBox11.BackColor = Color.White;
            textBox12.BackColor = Color.White;
            textBox13.BackColor = Color.White;
            textBox14.BackColor = Color.White;
            textBox15.BackColor = Color.White;
            textBox16.BackColor = Color.White;
        }