static void Main(string[] args) { TongHopCanChi.Init(); LookUpTable.Init(); var dan = from chi in TongHopCanChi.MuoiHaiDiaChi where chi.Ten == ChiEnum.Dan select chi; var ngo = TongHopCanChi.MuoiHaiDiaChi.Single(u => u.Ten == ChiEnum.Ngo); //NguHanhEnum nh; //LookUpTable.NapAm.TryGetValue(new Tuple<CanEnum, ChiEnum>(CanEnum.At, ChiEnum.None),out nh); var vts = LookUpTable.VongTruongSinh(CanEnum.Quy, ChiEnum.Mao); var truNguHoDon = LookUpTable.NguHoDon(CanEnum.Quy, ChiEnum.Hoi); var truNguThuDon = LookUpTable.NguThuDon(CanEnum.Quy, ChiEnum.Hoi); var canNgay = new ThienCan(CanEnum.At); var can = new ThienCan(CanEnum.Giap); SettingRules.SetThapThan(canNgay, can); Console.ReadKey(); }
public void Check_VongTruongSinh_Nham_Ti() { GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Nham, ChiEnum.Ti); Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.DeVuong, ts); }
public void Check_VongTruongSinh_Canh_Mui() { GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Canh, ChiEnum.Mui); Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.QuanDoi, ts); }
public void Check_VongTruongSinh_Dinh_Suu() { GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Dinh, ChiEnum.Suu); Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.Mo, ts); }
public void Check_VongTruongSinh_Giap_Ty() { GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Giap, ChiEnum.Ty); Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.Benh, ts); }