[請益] 這個函數
http://www.emanueleferonato.com/2008/12/09/sudoku-creatorsolver-with-php/
function scan_sudoku_for_unique($sudoku){
for($x=0;$x<=80;$x++){
if($sudoku[$x] == 0){
$possible[$x] = determine_possible_values($x,$sudoku);
if(count($possible[$x])==0){
return(false);
break;
}
}
}
return($possible);
}
--
裡面只有指定當$sudoku[$x] == 0時要做什麼動作,那$sudoku[$x] != 0時呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.44.138.133
推
08/13 20:43, , 1F
08/13 20:43, 1F
→
08/13 20:43, , 2F
08/13 20:43, 2F
→
08/13 20:57, , 3F
08/13 20:57, 3F
→
08/13 21:54, , 4F
08/13 21:54, 4F
→
08/13 21:59, , 5F
08/13 21:59, 5F
→
08/13 21:59, , 6F
08/13 21:59, 6F
推
08/13 23:04, , 7F
08/13 23:04, 7F
推
08/13 23:11, , 8F
08/13 23:11, 8F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章