这是一个以《周易》本经为底座的技能包。它包含三部分能力:
起卦:三钱或蓍草起卦,按七种变爻规则取辞。查卦:查六十四卦卦辞、爻辞、用九、用六。路由:给出术数百科式总览,但只把周易本经模块当作已校验核心。当用户出现以下需求时,优先使用本技能:
以下需求不要冒充已实现高精度:
这些内容目前只在 术数百科 中作为资料要求和边界说明存在。
优先调用:
bash
node scripts/zhouyi_cli.js cast --question "我是否该推进这次合作" --method coin --json
可选方法:
coin:三钱法,6/7/8/9 概率为 1/8、3/8、3/8、1/8yarrow:蓍草概率模拟,6/7/8/9 概率为 1/16、5/16、7/16、3/16如果需要复现结果,可带种子:
bash
node scripts/zhouyi_cli.js cast --question "测试" --method coin --seed demo --json
bash
node scripts/zhouyi_cli.js lookup --name 乾 --json
node scripts/zhouyi_cli.js lookup --number 3 --json
bash
node scripts/zhouyi_cli.js search --query "十年乃字" --json
node scripts/zhouyi_cli.js search --query "利涉大川" --json
bash
node scripts/zhouyi_cli.js catalog --json
node scripts/zhouyi_cli.js catalog --grade S --query 周易 --json
如果用户想要直接操作本地网页,打开根目录的 index.html 即可。网页包含:
调用 cast 后,按下列规则取辞:
references/README.mdreferences/user-guide-zh.mdreferences/zhouyi-benjing-source.txt重建本经数据:
bash
python3 scripts/build_zhouyi_data.py
运行校验:
bash
node tests/verify_zhouyi_system.js
node tests/verify_system_catalog.js
node tests/verify_cli.js