23 lines
448 B
Go
23 lines
448 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
utils "git.anthonygueguen.fr/g3po/aoc2023/internal"
|
|
day02 "git.anthonygueguen.fr/g3po/aoc2023/internal/02"
|
|
)
|
|
|
|
func main() {
|
|
content := utils.Init()
|
|
fmt.Println("Part 1")
|
|
|
|
idx := day02.GetPossibleGame(content)
|
|
result := utils.SumIntArr(idx)
|
|
fmt.Printf("Result: %d\n", result)
|
|
fmt.Println("Part 2")
|
|
|
|
power := day02.GetPowerOfGame(content)
|
|
result = utils.SumIntArr(power)
|
|
fmt.Printf("Result: %d\n", result)
|
|
}
|