Clean up output
This commit is contained in:
parent
70569e043a
commit
8545249be7
@ -11,7 +11,7 @@ func main() {
|
||||
inp := h.StdinToStringSlice()
|
||||
boards := buildBoards(inp[1:])
|
||||
draws := parseDraws(inp[0])
|
||||
//part1(boards, draws)
|
||||
part1(boards, draws)
|
||||
part2(boards, draws)
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ func part1(boards []Board, draws []int) {
|
||||
for w := range winners {
|
||||
fmt.Println("# Part 1")
|
||||
fmt.Println(winners[w])
|
||||
fmt.Println(winners[w].Score())
|
||||
fmt.Println("Score:", winners[w].Score())
|
||||
fmt.Println()
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,7 @@ func part2(boards []Board, draws []int) {
|
||||
fmt.Println("# Part 2")
|
||||
fmt.Println("Last Winner")
|
||||
fmt.Println(winners[len(winners)-1])
|
||||
fmt.Println(winners[len(winners)-1].Score())
|
||||
fmt.Println("Score:", winners[len(winners)-1].Score())
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user