/usr/lib/sudoku/board_$r",$res); $res = file_get_contents("/usr/lib/sudoku/board_$r"); $res = split("\n",$res); $diff = split(" - ",$res[0]); $diff = $diff[1]; switch($diff) { case "fiendish";$diffnr=5;break; case "hard";$diffnr=4;break; case "medium";$diffnr=3;break; case "easy";$diffnr=2;break; case "very easy";$diffnr=1;break; } if($diffnr == $grade || !$grade) // uppnått rätt svårighetsgrad eller ingen grad vald { $create_new = false; exec("sudoku -v -d /usr/lib/sudoku/board_$r > /usr/lib/sudoku/sol_$r",$corr); $corr = file_get_contents("/usr/lib/sudoku/sol_$r"); $corr = split("\n",$corr); exec("rm /usr/lib/sudoku/sol_$r"); exec("rm /usr/lib/sudoku/board_$r"); } }*/ //echo "          " . (microtime_float() - $t); // Fixa fram lösningen: switch($diff) { case "5";$diff="Extreme";$difft="Extremt svårt ";break; case "4";$diff="Hard";$difft="Svårt ";break; case "3";$diff="Average";$difft="Medelsvårt ";break; case "2";$diff="Easy";$difft="Lätt ";break; case "1";$diff="Beginner";$difft="Nybörjar-";break; case "fiendish";$diff="Extreme";$difft="Extremely hard ";break; case "hard";$diff="Hard";$difft="Hard ";break; case "medium";$diff="Average";$difft="Average ";break; case "easy";$diff="Easy";$difft="Easy ";break; case "very easy";$diff="Beginner";$difft="Beginner ";break; } $srand = rand(10,20); ?> Spela sudoku

Sudokukryss.se

Sudoku, difficulty

(choose "print" to print this sudoku)

"; $color_1 = "lightsalmon"; $color_2 = "beige"; $color = $color_1; $prefilled = 0; for($x=1;$x<=9;$x++) { //echo $res[$x]; if($x % 3 == 1) { $color_3 = $color_1; $color_1 = $color_2; $color_2 = $color_3; } $color = $color_1; echo ""; for($y=0;$y<9;$y++) { if($y % 3 == 0 && $color == $color_1) $color = $color_2; elseif($y % 3 == 0) $color = $color_1; $nr = substr($res[$x],$y,1); if($nr == 0) $nr = ""; else $prefilled++; $sqc = "red"; if($nr) $sqc = "black"; echo ""; if($nr) echo "$nr"; else echo " "; echo "\n"; } echo ""; } echo ""; if($plusmedlem) { echo ""; for($x=1;$x<=9;$x++) { echo ""; for($y=0;$y<9;$y++) { echo "\n"; } echo ""; } echo "
         
         
         
"; } ?>
Send this sudoku to a friend:
http://www.sudokukryss.se/english/sudoku/?val=


Correct numbers: hidden - click here to show

Show suggestion - Show detailed suggestion

Give me one correct number
Show full solution

You can use the alt or shift keys in combination with the numbers on your keyboard to make "notes" in the sudoku squares. This can be used to for example keep track of possible numbers to put in a square that you are trying to solve.

Ads