2025-01-28 00:07:06 +01:00
|
|
|
package export
|
2025-01-23 20:26:43 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
2025-01-28 00:31:02 +01:00
|
|
|
// Print solutions into a human friendly format for in the console.
|
2025-01-28 01:04:38 +01:00
|
|
|
func (export *Export) PrintHumanSolutions() {
|
2025-01-28 00:07:06 +01:00
|
|
|
for solutionIndex, solution := range export.Controller.Solutions {
|
2025-01-27 19:40:24 +01:00
|
|
|
log.Printf("\nSolution #%d:", solutionIndex+1)
|
2025-01-27 20:16:56 +01:00
|
|
|
fmt.Println("╔═══════════╗")
|
2025-01-28 01:43:47 +01:00
|
|
|
for rowIndex, row := range solution {
|
|
|
|
if rowIndex == 3 || rowIndex == 6 {
|
|
|
|
fmt.Println("╟───┼───┼───╢")
|
|
|
|
}
|
|
|
|
fmt.Println("║" + row[0:3] + "│" + row[3:6] + "│" + row[6:9] + "╢")
|
|
|
|
}
|
2025-01-27 20:16:56 +01:00
|
|
|
fmt.Println("╚═══════════╝")
|
2025-01-23 20:26:43 +01:00
|
|
|
}
|
|
|
|
}
|