Beispiel #1
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]);
                        }
                    }
                }
            }
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="initValues">数独初盘</param>
 /// <param name="initLists">剩余的有数据的位置</param>
 public SudokuMarket(string initValues) : this(StaticTools.StringToList(initValues))
 {
 }