update
This commit is contained in:
parent
59ed4ac5f9
commit
c4c3abd6d2
3 changed files with 12 additions and 1 deletions
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
4
Solver/Solver.go
Normal file
4
Solver/Solver.go
Normal file
|
@ -0,0 +1,4 @@
|
|||
package Solver
|
||||
|
||||
type SudokuSolver struct {
|
||||
}
|
3
main.go
3
main.go
|
@ -31,8 +31,9 @@ func main() {
|
|||
{'.', '.', '.', '.', '8', '.', '.', '7', '9'},
|
||||
}
|
||||
tick := time.Tick(time.Millisecond)
|
||||
start := <-tick
|
||||
|
||||
validator := SudokuValidator.NewSudokuValidator()
|
||||
start := <-tick
|
||||
fmt.Println("Example 1 is valid:", validator.IsValidSudoku(&board1))
|
||||
fmt.Println("Example 2 is valid:", validator.IsValidSudoku(&board2))
|
||||
end := <-tick
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue