Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GuaMap = map[Pair]int{
{writes[0], writes[0]}: 0,
{writes[7], writes[7]}: 1,
{writes[3], writes[5]}: 2,
{writes[5], writes[6]}: 3,
{writes[0], writes[5]}: 4,
{writes[5], writes[0]}: 5,
{writes[5], writes[7]}: 6,
{writes[7], writes[5]}: 7,
{writes[0], writes[4]}: 8,
{writes[1], writes[0]}: 9,
{writes[0], writes[7]}: 10,
{writes[7], writes[0]}: 11,
{writes[2], writes[0]}: 12,
{writes[0], writes[2]}: 13,
{writes[6], writes[7]}: 14,
{writes[7], writes[3]}: 15,
{writes[3], writes[1]}: 16,
{writes[4], writes[6]}: 17,
{writes[1], writes[7]}: 18,
{writes[7], writes[4]}: 19,
{writes[3], writes[2]}: 20,
{writes[2], writes[6]}: 21,
{writes[7], writes[6]}: 22,
{writes[3], writes[7]}: 23,
{writes[3], writes[0]}: 24,
{writes[0], writes[6]}: 25,
{writes[3], writes[6]}: 26,
{writes[4], writes[1]}: 27,
{writes[5], writes[5]}: 28,
{writes[2], writes[2]}: 29,
{writes[6], writes[1]}: 30,
{writes[4], writes[3]}: 31,
{writes[6], writes[0]}: 32,
{writes[0], writes[3]}: 33,
{writes[7], writes[2]}: 34,
{writes[2], writes[7]}: 35,
{writes[2], writes[4]}: 36,
{writes[1], writes[2]}: 37,
{writes[6], writes[5]}: 38,
{writes[5], writes[3]}: 39,
{writes[1], writes[6]}: 40,
{writes[3], writes[4]}: 41,
{writes[0], writes[1]}: 42,
{writes[4], writes[0]}: 43,
{writes[7], writes[1]}: 44,
{writes[4], writes[7]}: 45,
{writes[5], writes[1]}: 46,
{writes[4], writes[5]}: 47,
{writes[2], writes[1]}: 48,
{writes[4], writes[2]}: 49,
{writes[3], writes[3]}: 50,
{writes[6], writes[6]}: 51,
{writes[6], writes[4]}: 52,
{writes[1], writes[3]}: 53,
{writes[2], writes[3]}: 54,
{writes[6], writes[2]}: 55,
{writes[4], writes[4]}: 56,
{writes[1], writes[1]}: 57,
{writes[5], writes[4]}: 58,
{writes[1], writes[5]}: 59,
{writes[1], writes[4]}: 60,
{writes[6], writes[3]}: 61,
{writes[2], writes[5]}: 62,
{writes[5], writes[2]}: 63,
}
Functions ¶
func GetGuaName ¶
func GetItemOFGua ¶
Types ¶
type Gua ¶
type Gua struct { // nowtime 调用时取即可 // 用户数据的象征,作为其中一个种子 Seed uint64 //本卦 //数字用来记录卦的阴阳,定义0为阳,1为阴 //一爻为三数,最大为1+1+1,最小为0+0+0 //则0为老阳,1为少阴,2为少阳.3为老阴 Inward [6]uint8 //变卦 //老阳与老阴变换 //结果再减去1,用于对应标准 //最后应该只存在0,1 //0对应 -- ,1对应 - - Range [6]uint8 //变卦数量 RangeNum int }
func (*Gua) GetManifestation ¶
Click to show internal directories.
Click to hide internal directories.