Skip to content

Commit baa5f4f

Browse files
committed
fill in upcoming days
1 parent daff427 commit baa5f4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+162
-0
lines changed

2020/advent-of-code

2.54 MB
Binary file not shown.

2020/day01/day01_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day01

2020/day02/day02_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day02

2020/day03/day03_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day03

2020/day04/day04_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day04

2020/day13/day13.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day13
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day13/day13_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day13

2020/day13/input.txt

Whitespace-only changes.

2020/day14/day14.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day14
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day14/day14_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day14

2020/day14/input.txt

Whitespace-only changes.

2020/day15/day15.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day15
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day15/day15_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day15

2020/day15/input.txt

Whitespace-only changes.

2020/day16/day16.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day16
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day16/day16_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day16

2020/day16/input.txt

Whitespace-only changes.

2020/day17/day17.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day17
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day17/day17_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day17

2020/day17/input.txt

Whitespace-only changes.

2020/day18/day18.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day18
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day18/day18_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day18

2020/day18/input.txt

Whitespace-only changes.

2020/day19/day19.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day19
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day19/day19_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day19

2020/day19/input.txt

Whitespace-only changes.

2020/day20/day20.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day20
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day20/day20_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day20

2020/day20/input.txt

Whitespace-only changes.

2020/day21/day21.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day21
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day21/day21_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day21

2020/day21/input.txt

Whitespace-only changes.

2020/day22/day22.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day22
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day22/day22_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day22

2020/day22/input.txt

Whitespace-only changes.

2020/day23/day23.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day23
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day23/day23_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day23

2020/day23/input.txt

Whitespace-only changes.

2020/day24/day24.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day24
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day24/day24_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day24

2020/day24/input.txt

Whitespace-only changes.

2020/day25/day25.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package day25
2+
3+
import "fmt"
4+
5+
func Run(lines []string) error {
6+
return fmt.Errorf("not yet implemented")
7+
}

2020/day25/day25_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package day25

2020/day25/input.txt

Whitespace-only changes.

2020/main.go

+26
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ import (
1818
"github.com/anurse/advent-of-code/day10"
1919
"github.com/anurse/advent-of-code/day11"
2020
"github.com/anurse/advent-of-code/day12"
21+
"github.com/anurse/advent-of-code/day13"
22+
"github.com/anurse/advent-of-code/day14"
23+
"github.com/anurse/advent-of-code/day15"
24+
"github.com/anurse/advent-of-code/day16"
25+
"github.com/anurse/advent-of-code/day17"
26+
"github.com/anurse/advent-of-code/day18"
27+
"github.com/anurse/advent-of-code/day19"
28+
"github.com/anurse/advent-of-code/day20"
29+
"github.com/anurse/advent-of-code/day21"
30+
"github.com/anurse/advent-of-code/day22"
31+
"github.com/anurse/advent-of-code/day23"
32+
"github.com/anurse/advent-of-code/day24"
33+
"github.com/anurse/advent-of-code/day25"
2134
)
2235

2336
func init() {
@@ -33,6 +46,19 @@ func init() {
3346
advent.RegisterDay(10, advent.WithInputFileAsLines(day10.Run))
3447
advent.RegisterDay(11, advent.WithInputFileAsLines(day11.Run))
3548
advent.RegisterDay(12, advent.WithInputFileAsLines(day12.Run))
49+
advent.RegisterDay(13, advent.WithInputFileAsLines(day13.Run))
50+
advent.RegisterDay(14, advent.WithInputFileAsLines(day14.Run))
51+
advent.RegisterDay(15, advent.WithInputFileAsLines(day15.Run))
52+
advent.RegisterDay(16, advent.WithInputFileAsLines(day16.Run))
53+
advent.RegisterDay(17, advent.WithInputFileAsLines(day17.Run))
54+
advent.RegisterDay(18, advent.WithInputFileAsLines(day18.Run))
55+
advent.RegisterDay(19, advent.WithInputFileAsLines(day19.Run))
56+
advent.RegisterDay(20, advent.WithInputFileAsLines(day20.Run))
57+
advent.RegisterDay(21, advent.WithInputFileAsLines(day21.Run))
58+
advent.RegisterDay(22, advent.WithInputFileAsLines(day22.Run))
59+
advent.RegisterDay(23, advent.WithInputFileAsLines(day23.Run))
60+
advent.RegisterDay(24, advent.WithInputFileAsLines(day24.Run))
61+
advent.RegisterDay(25, advent.WithInputFileAsLines(day25.Run))
3662
}
3763

3864
func main() {

2020/make-days

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
for day in day{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}; do
3+
if [ ! -d "$day" ]; then
4+
mkdir $day
5+
fi
6+
7+
if [ ! -f "$day/$day.go" ]; then
8+
cat <<EOF > "$day/$day.go"
9+
package $day
10+
11+
import "fmt"
12+
13+
func Run(lines []string) error {
14+
return fmt.Errorf("not yet implemented")
15+
}
16+
EOF
17+
fi
18+
19+
if [ ! -f "$day/${day}_test.go" ]; then
20+
cat <<EOF > "$day/${day}_test.go"
21+
package $day
22+
EOF
23+
fi
24+
25+
if [ ! -f "$day/input.txt" ]; then
26+
touch "$day/input.txt"
27+
fi
28+
done

0 commit comments

Comments
 (0)