Index: src/solver.d ================================================================== --- src/solver.d +++ src/solver.d @@ -104,17 +104,23 @@ // this(in Game g); char single_step(); void force(char c); } +/// +/// Solver "Mountain": be immovable like a mountain. +/// class 不動如山 : Solver { this(in Game g) {} char single_step() { return 'W'; } void force(char c) {} } +/// +/// Solver "Forest": shows contemplation. +/// class 徐如林 : Solver { int wait_count = 0; int choke_count = 0; @@ -392,10 +398,13 @@ } return (danger_ok ? [] : tryA()) ~ tryB() ~ tryC(); } } +/// +/// Solver "Fire": in raiding and plundering other solvers, be like fire. +/// class 侵掠如火(SubSolver) : Solver { // Parameters. int PredictFuture = 10; const string[] RandomChoicePattern; // PF*RCP exhaustive search for RL steps @@ -599,10 +608,13 @@ if(cur.empty) { cur = next; next = null; } return v; } } +/// +/// Solver "Wind": let your rapidity be that of the wind. +/// class 疾如風 : Solver { Game g; this(in Game g) {