Coverage 100%

This commit is contained in:
Madison Rye Progress
2026-03-18 14:33:57 -07:00
parent 3f1053ea61
commit bbc87afee1
5 changed files with 15 additions and 20 deletions

View File

@ -114,9 +114,6 @@ func (s *State) Clear() {
s.clear(*s.cursor, true)
}
func (s *State) view(cursor []int) {
}
func (s *State) initSection(p Point) {
s.history += fmt.Sprintf("i%s", p)
s.sections.clear(p, false)
@ -213,13 +210,6 @@ func (s *State) scoreValidCompletedSections() {
}
}
// updateAllHeaders runs updateHeaders for every row/column.
func (s *State) updateAllHeaders() {
for i := 0; i < s.size(); i++ {
s.updateHeaders(Point{i, i})
}
}
// updateHeaders makes sure that the counts of alive cells in rows/columns are accurate, and whether or not the row/column is complete.
func (s *State) updateHeaders(p Point) {
var rowHeader, colHeader header