Differences From Artifact [77a8a9a8973002b1]:
- File
src/solver.d
- 2012-07-16 04:52:13 - part of checkin [8bc4298777] on branch trunk - BFS result reusing of solver "wind". (user: kinaba) [annotate]
To Artifact [25a73167930e3586]:
- File
src/solver.d
- 2012-07-16 05:02:08 - part of checkin [b2ea244589] on branch trunk - Switcher implemented. (user: kinaba) [annotate]
704 } 704 }
705 } 705 }
706 706
707 return ""; 707 return "";
708 } 708 }
709 } 709 }
710 710
> 711 class Switcher
> 712 {
> 713 this(in Game g)
> 714 {
> 715 if(g.map.W*g.map.H <= 1600)
> 716 sub_solver = new 侵掠如火!(徐如林)(g);
> 717 else
> 718 sub_solver = new 侵掠如火!(疾如風)(g);
> 719 }
> 720 char single_step() { return sub_solver.single_step(); }
> 721 void force(char c) { return sub_solver.force(c); }
> 722
> 723 private Solver sub_solver;
> 724 }
> 725
> 726 alias Switcher MainSolver;
711 //alias 侵掠如火!(疾如風) MainSolver; 727 //alias 侵掠如火!(疾如風) MainSolver;
712 //alias 侵掠如火!(徐如林) MainSolver; 728 //alias 侵掠如火!(徐如林) MainSolver;
713 alias 疾如風 MainSolver; | 729 //alias 疾如風 MainSolver;
714 //alias 徐如林 MainSolver; 730 //alias 徐如林 MainSolver;
715 //alias 不動如山 MainSolver; 731 //alias 不動如山 MainSolver;