Differences From Artifact [1d7ea5dfabc56eb4]:
- File
src/gui_main.d
- 2012-07-15 11:17:59 - part of checkin [ff0ab77d3d] on branch trunk - new game class. (user: kinaba) [annotate]
To Artifact [372bc7cd7d19e082]:
- File
src/gui_main.d
- 2012-07-15 11:26:58 - part of checkin [bd650eb3f9] on branch trunk - Output is now fully functional. (user: kinaba) [annotate]
4 import solver; 4 import solver;
5 import std.stdio; 5 import std.stdio;
6 pragma(lib, "dfl.lib"); 6 pragma(lib, "dfl.lib");
7 7
8 void main(string[] args) 8 void main(string[] args)
9 { 9 {
10 Driver d = new Driver(stdin); 10 Driver d = new Driver(stdin);
11 // d.addObserver!(GuardedOutput)(); | 11 d.addObserver!(GuardedOutput)();
12 d.addObserver!(StdOutput)(); <
13 // auto g = d.addObserver!(GUI!MainSolver)(); 12 // auto g = d.addObserver!(GUI!MainSolver)();
14 auto g = d.addObserver!(GUI!Solver_0)(); 13 auto g = d.addObserver!(GUI!Solver_0)();
15 g.set_fn(&d.command); 14 g.set_fn(&d.command);
16 g.run(); 15 g.run();
17 } 16 }