private void Form1_Load(object sender, EventArgs e) { this.Text = "Эллеров Лабиринт"; /* Number of maps generate to * */ int count = 20; for (int i = 0; i < count; i++) { Eller eller = new Eller(8, 8, r); eller.makeMaze(); System.IO.File.WriteAllText("Карты\\карта-15х15_" + i.ToString() + ".txt", eller.getMaze()); } }
private void button1_Click(object sender, EventArgs e) { Eller eller = new Eller(8, 8, r); eller.makeMaze(); richTextBox1.Text = eller.getMaze(); }