We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39fddef commit 8e2352aCopy full SHA for 8e2352a
internal/game/puzzle.go
@@ -74,7 +74,7 @@ func solveCount(board *Board, limit int) int {
74
75
// hasUniqueSolution - 是否具有唯一解
76
func (board *Board) hasUniqueSolution() bool {
77
- copyBoard := *board
+ copyBoard := board.Clone()
78
count := solveCount(©Board, 2)
79
return count == 1
80
}
0 commit comments