using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Drawing; using System.IO; namespace Zelvaci { static class Program { /// /// Argumenty jsou stejné jako u ukázkového programu: /// jméno_programu.txt počet_tahů výstup.png /// Je-li počet_tahů menší než 0, provedou se všechny tahy. /// /// [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); StreamReader stream = new StreamReader(args[0]); Zelvak z = new Zelvak(700, 700); Interpreter interpreter = new Interpreter(z, stream); interpreter.Run(); z.GetImage().Save(args[2]); } } }