Refactor some of our tool code.
This commit is contained in:
parent
4cc37c6e39
commit
2614bb2def
16 changed files with 29 additions and 31 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/fileutils"
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/util"
|
||||
)
|
||||
|
||||
func occupied1(board [][]byte, i, j int) int {
|
||||
|
@ -95,7 +95,7 @@ func countOccupied(board [][]byte) int {
|
|||
|
||||
func main() {
|
||||
step := os.Args[1]
|
||||
board := fileutils.InputParserBytes(os.Args[2])
|
||||
board := util.InputParserBytes(os.Args[2])
|
||||
|
||||
changed := true
|
||||
for changed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue