Check-in [3c50d3dc78]
Not logged in
Overview
SHA1 Hash:3c50d3dc788e2916406690121c6e8661a5812f86
Date: 2012-07-16 08:06:48
User: kinaba
Comment:Solver_2 is fast enough. MasterSolver may not be needed.
Timelines: family | ancestors | descendants | both | trunk
Diffs: redesign
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified src/solver.d from [469e63844195a7a0] to [3fbaa7115d831a14].

430 log ~= c; 430 log ~= c; 431 } 431 } 432 if(s.g.cleared) state = Fixed; 432 if(s.g.cleared) state = Fixed; 433 else if(s.g.dead) state = Tentative_Stuck; 433 else if(s.g.dead) state = Tentative_Stuck; 434 return tuple(s.g.score, s, log, state); 434 return tuple(s.g.score, s, log, state); 435 } 435 } 436 } 436 } 437 < > 437 /* 438 class MasterSolver : Solver 438 class MasterSolver : Solver 439 { 439 { 440 this(in Game g) 440 this(in Game g) 441 { 441 { 442 int SIZE = g.map.H * g.map.W; 442 int SIZE = g.map.H * g.map.W; 443 if( SIZE <= 32*32 ) 443 if( SIZE <= 32*32 ) 444 sub = new Solver_2!(Solver_1)(g); 444 sub = new Solver_2!(Solver_1)(g); ................................................................................................................................................................................ 449 } 449 } 450 450 451 private Solver sub; 451 private Solver sub; 452 char single_step() { return sub.single_step(); } 452 char single_step() { return sub.single_step(); } 453 void force(char c) { sub.force(c); } 453 void force(char c) { sub.force(c); } 454 } 454 } 455 455 456 //alias MasterSolver MainSolver; | 456 alias MasterSolver MainSolver; > 457 */ 457 alias Solver_2!(Solver_1) MainSolver; 458 alias Solver_2!(Solver_1) MainSolver; 458 //alias Solver_1 MainSolver; 459 //alias Solver_1 MainSolver; 459 //alias Solver_0 MainSolver; 460 //alias Solver_0 MainSolver;