You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,23 @@
3
3
4
4
# Question 1 (Naked Twins)
5
5
Q: How do we use constraint propagation to solve the naked twins problem?
6
-
A: *Student should provide answer here*
6
+
A: When we have a naked twin in a unit (row, col, ...), we know that the values for the twins
7
+
can't be in other squares of this unit, so we delete the possibilities from these other squares. With this method
8
+
we can reduce the complexity of our grid and continue with our algorithm (eliminate/only_choice and search)
7
9
8
10
# Question 2 (Diagonal Sudoku)
9
11
Q: How do we use constraint propagation to solve the diagonal sudoku problem?
10
-
A: *Student should provide answer here*
12
+
A: We take a look at the diagonals of the sudoku and eliminate the values of solved squares from their peers
13
+
(other squares in the unit).
14
+
With the only_choice method we take a look at the list of possible values for every square in the diagonals
15
+
and see if there is one number that can only be placed in one square. If its the case we assign this number as the
16
+
only solution for this square (and eliminate again).
11
17
12
18
### Install
13
19
14
20
This project requires **Python 3**.
15
21
16
-
We recommend students install [Anaconda](https://www.continuum.io/downloads), a pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
22
+
We recommend students install [Anaconda](https://www.continuum.io/downloads), a pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
17
23
Please try using the environment we provided in the Anaconda lesson of the Nanodegree.
18
24
19
25
##### Optional: Pygame
@@ -35,4 +41,4 @@ To visualize your solution, please only assign values to the values_dict using t
35
41
36
42
### Data
37
43
38
-
The data consists of a text file of diagonal sudokus for you to solve.
44
+
The data consists of a text file of diagonal sudokus for you to solve.
0 commit comments