private string[,] OrderGodPan(string[,] dipan, string zhishi, string hg, bool order) { string[,] panSeqSrc = new string[3, 3]; if (!order) { panSeqSrc = DyadicArrayHelper.InitNineGong(xgodArr, true); } else { panSeqSrc = DyadicArrayHelper.InitNineGong(godArr, true); } int[] toSeq = DyadicArrayHelper.GetPanSeq(dipan, hg); int step = 0; step = DyadicArrayHelper.GetOrderStep(panSeqSrc, godArr[7], panSeqSrc[toSeq[0], toSeq[1]]); string[,] newPan = DyadicArrayHelper.DyadicNineGongToSideEigthGong(panSeqSrc, step, true); return(newPan); }
private string[,] OrderStarPan(string[,] dipan, string zhishi, string hg) { string[,] panSeqSrc = DyadicArrayHelper.InitNineGong(starArr, true); string[] fromto = GetPanSeqStep(starArr, dipan, zhishi, hg); int step = 0; //if (fromSeq[0] == toSeq[0] && fromSeq[1] == toSeq[1]) //{ // step = DyadicArrayHelper.GetOrderStep(panSeqSrc, srcArr[7], panSeqSrc[toSeq[0], toSeq[1]]); //} //else { step = DyadicArrayHelper.GetOrderStep(panSeqSrc, fromto[0], fromto[1]); } string[,] newPan = DyadicArrayHelper.DyadicNineGongToSideEigthGong(panSeqSrc, step, true); return(newPan); ; }
private string[,] OrderDoorPan(string[,] dipan, string zhishi, string xunz, string hg, string hz, bool order) { zhishi = GetZHISHI(GetFuTou(hourGZ, true)); string[,] panSeqSrc = DyadicArrayHelper.InitNineGong(doorArr, true); int[] fromSeq = DyadicArrayHelper.GetPanSeq(dipan, zhishi);//值坐标 zhimen = panSeqSrc[fromSeq[0], fromSeq[1]]; //if (zhimen == "") //落中宫,寄坤宫 记五数 //{ // fromSeq[0] = 2; // fromSeq[1] = 0; //} int[] toSeq = DyadicArrayHelper.GetNineGongSeq(fromSeq, Diffz(xunz, hz), xunz, hz, order);//旬支飞时支的坐标 string from = panSeqSrc[fromSeq[0], fromSeq[1]]; if (from.Trim() == string.Empty) { from = panSeqSrc[2, 0]; } string to = panSeqSrc[toSeq[0], toSeq[1]]; if (to.Trim() == string.Empty) { to = panSeqSrc[2, 0]; } int step = 0; if (from == to) { return(panSeqSrc); } else { step = DyadicArrayHelper.GetOrderStep(panSeqSrc, from, to); } string[,] newPan = DyadicArrayHelper.DyadicNineGongToSideEigthGong(panSeqSrc, step, true); return(newPan); }
private string[,] OrderTianPan(string[,] dipan, int step) { string[,] tian = DyadicArrayHelper.DyadicNineGongToSideEigthGong(dipan, step, true); return(tian); }