feat: 大六壬证据链架构
This commit is contained in:
1 parent
c0665c5ddf
commit
b03d84d479
2 files changed
+862
No files matched your search
@@ -3,6 +3,7 @@ import { buildPlate, getYueJiang, formatPlate } from './plate.js';
|
||||
import { assignGenerals, formatGenerals, getNoblemanBranch, isDaytime } from './tianjiang.js';
|
||||
import { buildSiKe, STEM_JIGONG } from './sike.js';
|
||||
import { buildSanChuan } from './sanchuan.js';
|
||||
import { buildEvidence, formatEvidenceText } from './evidence.js';
|
||||
|
||||
// CLI 参数解析
|
||||
const args = process.argv.slice(2);
|
||||
@@ -57,6 +58,14 @@ try {
|
||||
}, null, 2));
|
||||
} else {
|
||||
console.log(formatAsText(dayStem, dayBranch, hourBranch, month, yueJiang, plate, heavenBranches, sike, sanchuan, generals, noblemanBranch, xunKong, question));
|
||||
|
||||
// 证据链
|
||||
const evidence = buildEvidence({
|
||||
dayStem, dayBranch, hourBranch, month, yueJiang,
|
||||
plate, heavenBranches, sike, sanchuan,
|
||||
generals, noblemanBranch, xunKong, question,
|
||||
});
|
||||
console.log(formatEvidenceText(evidence));
|
||||
}
|
||||
} catch (e: any) {
|
||||
console.error('排盘错误:', e.message);
|
||||
|
||||
Reference in new issue
Block a user