コード例 #1
0
 public Khoi()
 {
     n      = 0;
     mang   = new string[0, 0];
     target = new Target();
     f      = 0;
     g      = 0;
     h      = 0;
     parent = null;
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: nguyendoanhien/School-AI
        static void Input()
        {
            n     = int.Parse(Console.ReadLine());          // Nhập n
            nguon = new Khoi(n, new string [n + 1, n + 1]); // (bỏ 0) và đi 1=>n
            dich  = new Khoi(n, new string [n + 1, n + 1]);

            dich.ToDich();
            //nguon.ToNguon(dich);
            nguon.ToNguon_Example(dich);
        }
コード例 #3
0
        public Khoi(Khoi another)
        {
            this.n    = another.n;
            this.mang = CopyMang(another);

            this.target = another.target;
            this.f      = another.f;
            this.g      = another.g;
            this.h      = another.h;
            this.parent = another.parent;
        }