diff --git a/uckf.go b/uckf.go index 8c852ae..866406a 100644 --- a/uckf.go +++ b/uckf.go @@ -94,8 +94,41 @@ func isStillFucked(board [][]byte, evals[][]fuckness) { return isFucked } +func isFucked(f fuckness) bool { + for i := 0; i <3; i++ { + for j := 0; j < 3; j++ { + if i == 1 && j == 1 { + continue + } + if f[i][j] == Fucked { + return true + } + } + } + return false +} + +func mightBeFucked(f fuckness) bool { + for i := 0; i <3; i++ { + for j := 0; j < 3; j++ { + if i == 1 && j == 1 { + continue + } + if f[i][j] == NotFucked { + return true + } + } + } + return false +} + func fuckUp(board [][]byte, evals [][]fuckness) { - + var todo [][2]int + for i, row := range evals { + for j, e := range row { + + } + } } func dump(board [][]byte, title string) {