fix part slices were no pinters

This commit is contained in:
2026-07-21 09:25:45 +02:00
parent 9a69d4610c
commit 8e99087a30
5 changed files with 106 additions and 26 deletions
+6 -2
View File
@@ -1,6 +1,10 @@
package strategies
import "git.kleiax.de/homepage/board"
import (
"fmt"
"git.kleiax.de/homepage/board"
)
// ────────────────────────────────────────────────────────────────────────────── //
// LAST_DIGIT STRUCTURE //
@@ -30,7 +34,7 @@ func (ld *LastDigit) SearchProgressableCells() int {
ld.changes = append(ld.changes, change)
}
})
//fmt.Printf("LastDigit Changes %d", len(ld.changes))
fmt.Printf("LastDigit Changes %d\n", len(ld.changes))
return len(ld.changes)
}
+4 -1
View File
@@ -44,7 +44,10 @@ func (b *Base) ApplyAll() int {
for _, change := range b.changes {
b.field.AddChange(&change)
}
return len(b.changes)
len := len(b.changes)
b.changes = b.changes[:0]
return len
}
func (b *Base) ApplyNext() bool {