From: Scott Worley Date: Thu, 21 Jun 2012 07:54:51 +0000 (-0700) Subject: Print visit costs with fixed width for vertical alignment. X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/84be93794d0bd73e7716fc54b847afd6a7f1f6e4 Print visit costs with fixed width for vertical alignment. --- diff --git a/planeteer.go b/planeteer.go index 82650b9..a6272f8 100644 --- a/planeteer.go +++ b/planeteer.go @@ -757,7 +757,7 @@ func main() { final_state[Visit] = all_bits & ^(1 << i) alt_best := FindBestState(data, dims, table, final_state) cost := table[alt_best].value - table[best].value - fmt.Println("\r", Commas(cost), "Cost to visit", visit()[i]) + fmt.Printf("\r%11v Cost to visit %v\n", Commas(cost), visit()[i]) } final_state[Visit] = dims[Visit] - 1