Clean up output

This commit is contained in:
Brian Buller 2021-12-05 11:31:07 -06:00
parent 70569e043a
commit 8545249be7

View File

@ -11,7 +11,7 @@ func main() {
inp := h.StdinToStringSlice() inp := h.StdinToStringSlice()
boards := buildBoards(inp[1:]) boards := buildBoards(inp[1:])
draws := parseDraws(inp[0]) draws := parseDraws(inp[0])
//part1(boards, draws) part1(boards, draws)
part2(boards, draws) part2(boards, draws)
} }
@ -30,7 +30,7 @@ func part1(boards []Board, draws []int) {
for w := range winners { for w := range winners {
fmt.Println("# Part 1") fmt.Println("# Part 1")
fmt.Println(winners[w]) fmt.Println(winners[w])
fmt.Println(winners[w].Score()) fmt.Println("Score:", winners[w].Score())
fmt.Println() fmt.Println()
} }
} }
@ -60,7 +60,7 @@ func part2(boards []Board, draws []int) {
fmt.Println("# Part 2") fmt.Println("# Part 2")
fmt.Println("Last Winner") fmt.Println("Last Winner")
fmt.Println(winners[len(winners)-1]) fmt.Println(winners[len(winners)-1])
fmt.Println(winners[len(winners)-1].Score()) fmt.Println("Score:", winners[len(winners)-1].Score())
fmt.Println() fmt.Println()
} }