support ipuz files

This commit is contained in:
cjdenio committed 2026-09-27 12:40:14 -04:00
1 parent 5d62a4b611
commit 21f9caec34
7 files changed
+263 -52

No files matched your search

-32
View File
@@ -11,38 +11,6 @@ import (
"golang.org/x/text/encoding/charmap"
)
type Direction int
const (
DirectionAcross Direction = iota
DirectionDown
)
type Clue struct {
Clue string
Solution string
Cells []int
Direction Direction
Number int
}
type Puzzle struct {
ClueCount int
Width int
Height int
Title string
Author string
Copyright string
Solution string
State string
Clues []*Clue
Cells [][2]*Clue
}
func startOfDownClue(puzzle string, width, height, index int) bool {
if puzzle[index] == '.' {
return false