first successful run to solve a simple puzzle
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package strategies
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.kleiax.de/homepage/board"
|
||||
)
|
||||
|
||||
@@ -24,6 +22,8 @@ func (ld *LastDigit) SearchProgressableCells() int {
|
||||
emptyCell = cell
|
||||
}
|
||||
})
|
||||
// fmt.Println(part)
|
||||
// fmt.Printf("Gefundene Zelle: %d/%d - %d, missungNumber: %v, Typ: %T\n", emptyCell.Pos.GetRow(), emptyCell.Pos.GetColumn(), emptyCell.GetNumber(), missingNumbers, part)
|
||||
change := board.ExternalChange{
|
||||
Cell: emptyCell,
|
||||
Action: board.ActionSetNumber,
|
||||
@@ -34,12 +34,12 @@ func (ld *LastDigit) SearchProgressableCells() int {
|
||||
ld.changes = append(ld.changes, change)
|
||||
}
|
||||
})
|
||||
fmt.Printf("LastDigit Changes %d\n", len(ld.changes))
|
||||
// fmt.Printf("LastDigit Changes %d\n", len(ld.changes))
|
||||
return len(ld.changes)
|
||||
}
|
||||
|
||||
func (ld *LastDigit) getName() string {
|
||||
return "Last Digit - Letzte Zahl"
|
||||
return "Last Digit"
|
||||
}
|
||||
|
||||
// ────────────────────────────────────────────────────────────────────────────── //
|
||||
|
||||
Reference in New Issue
Block a user