@@ -16,10 +16,18 @@ private void delegate(char c) fn; void set_fn(F)(F f) { this.fn = f; } - void run() + void run(bool automate = false) { + if(automate) { + Timer t = new Timer; + t.interval = 100; + t.tick ~= (Timer sender, EventArgs ea){ + fn(solver.single_step()); + }; + t.start(); + } Application.run(this); } override void on_game_changed(char c, const(Game) g, bool finished)