Differences From Artifact [a0394f9b9692c1eb]:
- File
src/cui_auto_main.d
- 2012-07-14 12:51:48 - part of checkin [8a59754e60] on branch trunk - GUI auto solver. (user: kinaba) [annotate]
To Artifact [d3f73764386d7688]:
- File
src/cui_auto_main.d
- 2012-07-14 14:22:32 - part of checkin [a0c3529225] on branch trunk - code cleanup (user: kinaba) [annotate]
2 2 import game;
3 3 import output;
4 4 import driver;
5 5 import solver;
6 6
7 7 class CUI(Solver) : GameObserver
8 8 {
9 - this(const(Game) g) {
10 - solver = new Solver(g);
11 - }
9 + this(in Game g) { solver = new Solver(g); }
12 10 Solver solver;
13 11 bool fin;
14 12 override void on_game_changed(char c, const(Game) g, bool finished)
15 13 {
16 14 fin = finished;
17 15 }
18 16 }