Exemple #1
0
        /// <summary>
        /// 是否是珍珠题
        /// </summary>
        /// <param name="newGens"></param>
        /// <returns></returns>
        /// 900400613320190700000000009000017008000000000700360000800000000009045086253001004 应该fanhuiTrue
        public static bool IsPearl(string newGens)
        {
            var a = new DanceLink().isValid(newGens);

            if (!a)
            {
                return(false);
            }
            foreach (var subString in StaticTools.GetSubString(newGens))
            {
                if (!new DanceLink().isValid(subString))
                {
                    continue;
                }
                return(false);
            }
            return(true);
        }
Exemple #2
0
        public void GetAnswerByForce()
        {
            var s = new DanceLink().do_solve(StrExpress);

            if (s.Length == 81)
            {
                var resultList = StaticTools.StringToList(s);

                for (int i = 0; i < 9; i++)
                {
                    for (int j = 0; j < 9; j++)
                    {
                        var loction = "postion_" + i + "_" + j;
                        if (cellInfos[loction].Value == 0)
                        {
                            cellInfos[loction].SetValue(resultList[i][j]);
                        }
                    }
                }
            }
        }