-
Notifications
You must be signed in to change notification settings - Fork 4
/
taiyidict.py
96 lines (94 loc) · 5.29 KB
/
taiyidict.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
tengan_shiji = {
tuple(list("甲乙")):{
"金":"西戎兵起,東百敗亡。",
"水":"北狄兵起,算和則冬有和親歲稔大熟。",
"木":"東夷兵起,船車爭興,歲豐。",
"火":"南蠻變動,夏旱大熱,民流亡、疾病,所臨分野,有失暑兵,若太乙在丙丁下者,其城必有大旱之變及異兵、火災。",
"土":"中宮兵動,如與太乙格迫掩者,主臣下謀上,亦主廢將輔及土工興作。"},
tuple(list("丙丁")):
{"水":"東北兵起息,大水民流亡。",
"土":"東京兵起后中宮。",
"木":"春又東京周人有和親之事。",
"金":"西戎有兵,金銀貴,重臣被誅。",
"火":"正南蠻兵動,大旱,民飢病,兵革。"},
tuple(list("戊己")):
{"木":"東夷兵動。",
"火":"南方有兵及蝗,生米大貴,大旱,民流移。",
"土":"主中宮憂,土工興,山崩地動。",
"金":"西戎兵起,與北狄交爭。",
"水":"主征北狄,大臣誅,夏旱,冬大雨雪。"},
tuple(list("庚辛")):
{"木":"東夷兵起,民流移,及西戎兵動。",
"火":"南蠻兵動,中國火災,必有掩捕襲奪之事,歲旱,金銀貴。",
"土":"中國兵興,民豐,粟貴,夏大水。",
"金":"西戎兵動。",
"水":"北狄兵起。"},
tuple(list("壬癸")):
{"木":"東夷兵疲。",
"火":"南蠻多災,夏旱,赤地千里,秋冬大水,冬霜雪。",
"土":"中國有兵。",
"金":"西戎獻寶,大豐,民和。",
"水":"西北兵侵,冬大寒,霜雪殺物。"}
}
su_dist = {"角":"大人有憂,兵出。",
"亢":"民有疾疫之災。",
"氐":"內有叛臣,宮中防火。",
"房":"人君將相有憂。",
"心":"太子、諸王有憂。",
"尾":"后宮有驚,后妃有災。",
"箕":"兵起,士卒流亡。",
"斗":"臣失爵祿,關縣門塞。",
"牛":"糴貴,民飢餓,牲多死。",
"女":"后妃疾病,憂大災。",
"虛":"諸侯有憂,政平,令行赦宥。",
"危":"歲多病,土工,兵起。",
"室":"大人匿謀,歲不收。",
"壁":"文章興,兵發。",
"奎":"臣下為擊。",
"婁":"山林寇盜,道路不通。",
"胃":"五谷不發,有兵。",
"昴":"胡人疾病,燕趙兵起。",
"畢":"邊兵刑罰征伐。",
"觜":"將教司馬急行。",
"參":"宮室有移動事,將有憂。",
"井":"川瀆滿溢,兵動。",
"鬼":"后妃失勢,民多疾病。",
"柳":"民飢荒,多流亡。",
"星":"憂人災。",
"張":"禮義多變異。",
"翼":"陰陽失序,多雨水。",
"軫":"有大喪死亡之事。"}
taiyigong = {
3:"太歲忽居未與坤,三宮太乙格為津,彗星若見東北隅,助太歲兮喜復新,若見西南為囚迫,疾病兵喪多凶厄。太乙在三宮,太歲臨未申為格對當彗出東北,助太歲有慶,我比雖有格,戰災亦輕。",
4:"太乙移來在四宮,酉年為格災難測。當應太白出西方,兵寧道泰強家國。木星東北不為祥,歲月災迍為兵革。太乙在四宮,太歲在酉,當為太白,出西方,助太歲,東國前敗,西國後敗。彗星東見,卻主崩亡,民流、兵革、疾疫也。",
8:"若也太歲居於午,太乙八宮相格苦。南方或有熒惑星,助太歲兮為甘露。辰星北現變為凶,兵革崩亡傷旱雨。太乙在八宮,太歲在午,當有熒惑出南方,助太歲,其占北國先敗,南國後敗。若辰星北出,則反為兵革崩亡,時雨不調,若傷民疫,為災尢甚。",
9:"歲次加臨戌亥年,太乙居九最迍邅。五穀豐登何宿現,彗星為出㢲方邊。更兼挾迫惡疾疫,人民寥落為兵遷。太乙在九宮,太歲,次戌亥,彗星出乾助太歲,五穀豐登。若出東南,則反主民亡兵革,瘟疫流行也。",
}
ty_dist = {"角":"太乙臨之無格迫諸凶,民豐國泰,遇諸凶大兵革在鄭分。",
"亢":"諸凶集主重臣遭獄,鄭分大疫。",
"氐":"遇諸凶主廢后妃,內有叛臣中宮防火筭和,鄭宋分進妃嬪。",
"房":"迫車賀動掩擊兵起流亡關梁不通。",
"心":"掩迫一二筭在臣,四五六筭天子災。",
"尾":"無諸凶,生太子進后妃,遇諸凶筭不和,一二后,三四妃,五六嬪,七八妾,九十下妾災。",
"箕":"遇諸凶,口舌妖言,兵革起,卒流亡",
"斗":"有變,國政革易臣失爵君災。",
"牛":"有變,民飢火災犧牲橫死。",
"女":"無變,進妃嬪有變,女爭寵。",
"虛":"筭和,大祀大赦;不和,有變國大喪。",
"危":"掩迫疾病死亡日月有變,兵起齊分。",
"室":"有變。火災倉廩歲旱民飢。",
"壁":"文興兵廢,有變,道術興王者好武事不用圖書兵起於衛。",
"奎":"兵革起於魯分。",
"婁":"有事太廟有變,王庭訟獄。",
"胃":"有變。倉庫空虛。",
"昴":"格延君憂大喪,關囚宗廟災大臣下獄筭在陰大水。",
"畢":"格讒臣在朝延中國兵反趙分盜起。",
"觜":"格兵旅失律軍儲不應大將失權。",
"參":"掩主篡弒迫秦兵起格臣下謀上筭重陰大水秦分尤甚。",
"井":"天子好屠,關囚君欲誅臣。",
"鬼":"一八筭,金玉貴,二九兵起,三十民屍積千里,四五胡馬亂中原,六七布帛貴。",
"柳":"關格五谷不收。",
"星":"有變,兵革起,君子在野,小人在位。",
"張":"有變宗廟有傷。",
"翼":"掩迫四夷兵動天子出征。",
"軫":"筭不和有變,死喪之事。"}