fix bugs, add go.mod

This commit is contained in:
Kistaro Windrider 2024-02-05 18:30:08 -08:00
parent 61d2574fcb
commit 6d647a08c4
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8
2 changed files with 4 additions and 1 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.chromaticdragon.app/kistaro/uckf
go 1.21.4

View File

@ -95,7 +95,7 @@ func isStillFucked(board [][]byte, evals[][]fuckness) bool {
// mark every letter involved as fucked
isFucked = true
for w := 0; w < 4; w++ {
evals[i+w*dr][j+w*dc][dr+1][dc+1] = Fucked
evals[fRow+w*dr][fCol+w*dc][dr+1][dc+1] = Fucked
}
} else {
evals[i][j][dr+1][dc+1] = NotFucked