Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions internal/puzzles/solutions/2016/day02/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ type keypad struct {
loadKeypadPart2
keyboard

1
2 3 4
5 6 7 8 9
A B C
D
1
2 3 4
5 6 7 8 9
A B C
D

start at `5`

Expand Down Expand Up @@ -139,9 +139,10 @@ func loadKeypadPart2() keypad {
/*
loadKeypadPart1
keyboard
1 2 3
4 5 6
7 8 9

1 2 3
4 5 6
7 8 9

let's predict that this is a 2 dimension matrix and 5 is a 1,1
*/
Expand Down
12 changes: 6 additions & 6 deletions internal/puzzles/solutions/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
//
// Example:
//
// type solver struct {
// type solver struct {
// name string
// }
//
// func init() {
// puzzleName, err := solutions.MakeName("2019", "day01")
// puzzleName, err := solutions.MakeName("2019", "day01")
// if err != nil {
// panic(err)
// }
// puzzles.Register(puzzleName, solver{
// puzzles.Register(puzzleName, solver{
// name: puzzleName,
// })
// }
// }
//
// Then to register solution in the list of all solutions: make a blank import of package with puzzle solution
// at register_<year>.go
//
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
//
// And then blank import solutions package at main.go to register all solutions
//
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
package solutions
2 changes: 0 additions & 2 deletions scripts/sync-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ TOOLS_DIR=${REPO_ROOT}/tools

echo "${SCRIPT_NAME} is running... "

go env -w GOPROXY=https://proxy.golang.org,direct

sync_vendor() {
go mod tidy -v
go mod vendor
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "${SCRIPT_NAME} is running... "

GOTEST="go test -v "
if command -v "gotestsum" &>/dev/null; then
GOTEST="gotestsum --format pkgname --"
GOTEST="gotestsum --format pkgname-and-test-fails --"
fi

${GOTEST} -race ./...
Expand Down