Пример #1
0
 public bool TrySolveOneDefaultDirs(out Stage stage, out int step)
 {
     var dirs0 = new Vec[] { Vec.LEFT, Vec.RIGHT, Vec.UP, Vec.DOWN };
     var dirs1 = new Vec[] { Vec.DOWN, Vec.UP, Vec.RIGHT, Vec.LEFT };
     var tasks = new Task <(bool, int, Stage)>[] { TrySolveOne(dirs0), TrySolveOne(dirs1) };
Пример #2
0
 public Solver(string map, int truckAmount) : this(Stage.ParseMapFromString(map), truckAmount)
 {
 }