コード例 #1
0
ファイル: Program.cs プロジェクト: lvbach88/TuTru.VS2013
        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();
        }
コード例 #2
0
        public void Check_VongTruongSinh_Nham_Ti()
        {
            GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Nham, ChiEnum.Ti);

            Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.DeVuong, ts);
        }
コード例 #3
0
        public void Check_VongTruongSinh_Canh_Mui()
        {
            GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Canh, ChiEnum.Mui);

            Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.QuanDoi, ts);
        }
コード例 #4
0
        public void Check_VongTruongSinh_Dinh_Suu()
        {
            GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Dinh, ChiEnum.Suu);

            Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.Mo, ts);
        }
コード例 #5
0
        public void Check_VongTruongSinh_Giap_Ty()
        {
            GiaiDoanTruongSinhEnum ts = LookUpTable.VongTruongSinh(CanEnum.Giap, ChiEnum.Ty);

            Assert.AreEqual <GiaiDoanTruongSinhEnum>(GiaiDoanTruongSinhEnum.Benh, ts);
        }