这几天我一直在尝试制作一个数独求解程序,但我坚持使用这些方法。我在这里找到了这个算法,但我不太明白:startatthefirstemptycell,andput1init.Checktheentireboard,andseeifthereareanyconflictsIftherearecoflictsontheboard,increasethenumberinthecurrentcellby1(sochange1to2,2to3,etc)Iftheboardiscleanmove,startatsteponeagain.Ifallninepossiblenumbersonagive
所以我正在制作国际象棋游戏,但是我无法让象棋正确移动。这是我的棋盘:stringboard[8][8]={{"_","_","_","_","_","_","_","_"},{"_","_","_","_","_","_","_","_"},{"_","_","_","_","_","B","_","_"},{"_","_","_","_","_","_","_","_"},{"_","_","_","_","_","_","_","_"},{"_","_","_","_","_","_","_","_"},{"_","_","_","_","_","_","_","_"},{"_",