Day 16 first attempt. Not working yet
This commit is contained in:
25
sixteen/main.go
Normal file
25
sixteen/main.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package sixteen
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Sixteen struct {
|
||||
bits packet
|
||||
}
|
||||
|
||||
func Init(filepath string) *Sixteen {
|
||||
sixteen := &Sixteen{
|
||||
bits: packet{},
|
||||
}
|
||||
|
||||
sixteen.bits = load(filepath)
|
||||
return sixteen
|
||||
}
|
||||
|
||||
func (d *Sixteen) Answer() string {
|
||||
return fmt.Sprintf("The sum of the version numbers is %d", d.bits.versionSum())
|
||||
}
|
||||
|
||||
func (d *Sixteen) FollowUp() string {
|
||||
return "sixteen part 2 answer for bits"
|
||||
}
|
||||
|
Reference in New Issue
Block a user