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  import game;                                                                           2  import game;
    3  import output;                                                                         3  import output;
    4  import driver;                                                                         4  import driver;
    5  import solver;                                                                         5  import solver;
    6                                                                                         6  
    7  class CUI(Solver) : GameObserver                                                       7  class CUI(Solver) : GameObserver
    8  {                                                                                      8  {
    9          this(const(Game) g) {                                                    <
   10                  solver = new Solver(g);                                          |     9          this(in Game g) { solver = new Solver(g); }
   11          }                                                                        <
   12          Solver solver;                                                                10          Solver solver;
   13          bool fin;                                                                     11          bool fin;
   14          override void on_game_changed(char c, const(Game) g, bool finished)           12          override void on_game_changed(char c, const(Game) g, bool finished)
   15          {                                                                             13          {
   16                  fin = finished;                                                       14                  fin = finished;
   17          }                                                                             15          }
   18  }                                                                                     16  }