State tests 100%

This commit is contained in:
Madison Rye Progress
2025-08-28 22:16:29 -07:00
parent 29bd181e4f
commit bef9cd248e
6 changed files with 82 additions and 27 deletions

View File

@ -94,6 +94,6 @@ func (f *field) flag(p Point) {
}
// clear clears all but the cell's state.
func (f *field) clear(p Point) {
f.cells[f.i(p)] = f.cells[f.i(p)].clear()
func (f *field) clear(p Point, deadCorrect bool) {
f.cells[f.i(p)] = f.cells[f.i(p)].clear(deadCorrect)
}