This commit is contained in:
ZennDev1337 2024-04-02 09:23:44 +02:00
parent 59ed4ac5f9
commit c4c3abd6d2
3 changed files with 12 additions and 1 deletions

6
.idea/vcs.xml generated Normal file
View 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
View file

@ -0,0 +1,4 @@
package Solver
type SudokuSolver struct {
}

View file

@ -31,8 +31,9 @@ func main() {
{'.', '.', '.', '.', '8', '.', '.', '7', '9'}, {'.', '.', '.', '.', '8', '.', '.', '7', '9'},
} }
tick := time.Tick(time.Millisecond) tick := time.Tick(time.Millisecond)
start := <-tick
validator := SudokuValidator.NewSudokuValidator() validator := SudokuValidator.NewSudokuValidator()
start := <-tick
fmt.Println("Example 1 is valid:", validator.IsValidSudoku(&board1)) fmt.Println("Example 1 is valid:", validator.IsValidSudoku(&board1))
fmt.Println("Example 2 is valid:", validator.IsValidSudoku(&board2)) fmt.Println("Example 2 is valid:", validator.IsValidSudoku(&board2))
end := <-tick end := <-tick