|
1 | 1 | ## Contents |
2 | 2 | - [Generator](#generator) |
3 | 3 | - [Solver](#solver) |
| 4 | +- [Score](#score) |
4 | 5 | - [Puzzle Form](#puzzle-form) |
5 | 6 | * [Supported Form](#supported-form) |
6 | 7 | + [4x4](#4x4) |
|
12 | 13 | + [12x12](#12x12) |
13 | 14 | + [16x16](#16x16) |
14 | 15 | + [25x25](#25x25) |
15 | | -- [Score](#score) |
16 | 16 |
|
17 | 17 | ## Generator |
18 | 18 |
|
@@ -73,6 +73,20 @@ Puzzle solved = PuzzleSolver.solve(puzzle, 5 * 1000); |
73 | 73 | System.out.println(solved); |
74 | 74 | ``` |
75 | 75 |
|
| 76 | + |
| 77 | +## Score |
| 78 | + |
| 79 | +Score of sudoku puzzle is defined |
| 80 | ++ `<` **100** : know the rule |
| 81 | ++ `>` **100** and `<` **1000** : know some techniques |
| 82 | ++ `>` **1000** : requires flat-out trial (_`score / 1000`_ is the number of tries) |
| 83 | + |
| 84 | +The Puzzle with higher score is harder to solve. |
| 85 | + |
| 86 | +To show the puzzle as string, use `puzzle.toString()` |
| 87 | + |
| 88 | +To get score of a puzzle, use `puzzle.difficultyScore(answer)` where **_answer_** is the solved puzzle. |
| 89 | + |
76 | 90 | ## Puzzle Form |
77 | 91 | Puzzle form is form of all boxes inside the puzzle. **The first box index is 0**. |
78 | 92 |
|
@@ -319,20 +333,6 @@ Support Classic Form Only |
319 | 333 | #### 25x25 |
320 | 334 | Support Classic Form Only |
321 | 335 |
|
322 | | -## Score |
323 | | - |
324 | | -Score of sudoku puzzle is defined |
325 | | -+ `<` **100** : know the rule |
326 | | -+ `>` **100** and `<` **1000** : know some techniques |
327 | | -+ `>` **1000** : requires flat-out trial (_`score / 1000`_ is the number of tries) |
328 | | - |
329 | | -The Puzzle with higher score is harder to solve. |
330 | | - |
331 | | -To show the puzzle as string, use `puzzle.toString()` |
332 | | - |
333 | | -To get score of a puzzle, use `puzzle.difficultyScore(answer)` where **_answer_** is the solved puzzle. |
334 | | - |
335 | | - |
336 | 336 | See Example: https://github.com/dangnguyendota/SudokuGeneratorAndSolver/blob/master/src/vn/com/dangnguyendota/Example.java |
337 | 337 |
|
338 | 338 | Supported: |
|
0 commit comments