fix part slices were no pinters
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user