public void Test_Square_Expansion() { for (int i = 0; i < 9; i++) { int[] square = CreateSquare(i); IState init = new Square(square); Console.WriteLine(init.ToString()); foreach (var s in init.GetSuccessors()) { Console.WriteLine("---------\n{0} ({1}{2})", s.Action, s.Cost, s.State.IsTerminal ? ", Goal" : ""); Console.WriteLine(s.State); } Console.WriteLine("------------------------------------------"); } }