public List<Swap> GetSwaps(string boardConfig) { var p = new Problem(boardConfig); p.Solve(); return p.Swaps.Select(s => new Swap {s1 = s.Item1, s2 = s.Item2}).ToList(); }
static void Main(string[] args) { Problem problem = new Problem(); problem.Solve(); }