Differences From Artifact [469e63844195a7a0]:
- File
src/solver.d
- 2012-07-15 22:57:43 - part of checkin [fa2f8e21f2] on branch trunk - messages to stderr. (user: kinaba) [annotate]
To Artifact [3fbaa7115d831a14]:
- File
src/solver.d
- 2012-07-15 23:06:48 - part of checkin [3c50d3dc78] on branch trunk - Solver_2 is fast enough. MasterSolver may not be needed. (user: kinaba) [annotate]
430 430 log ~= c;
431 431 }
432 432 if(s.g.cleared) state = Fixed;
433 433 else if(s.g.dead) state = Tentative_Stuck;
434 434 return tuple(s.g.score, s, log, state);
435 435 }
436 436 }
437 -
437 +/*
438 438 class MasterSolver : Solver
439 439 {
440 440 this(in Game g)
441 441 {
442 442 int SIZE = g.map.H * g.map.W;
443 443 if( SIZE <= 32*32 )
444 444 sub = new Solver_2!(Solver_1)(g);
................................................................................
449 449 }
450 450
451 451 private Solver sub;
452 452 char single_step() { return sub.single_step(); }
453 453 void force(char c) { sub.force(c); }
454 454 }
455 455
456 -//alias MasterSolver MainSolver;
456 +alias MasterSolver MainSolver;
457 +*/
457 458 alias Solver_2!(Solver_1) MainSolver;
458 459 //alias Solver_1 MainSolver;
459 460 //alias Solver_0 MainSolver;