Skip to content

Commit c290b72

Browse files
committed
prep y24
1 parent 716a288 commit c290b72

30 files changed

+648
-3
lines changed

.classpath

+26-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
<attribute name="maven.pomderived" value="true"/>
1414
</attributes>
1515
</classpathentry>
16-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
16+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-19">
1717
<attributes>
18-
<attribute name="module" value="true"/>
1918
<attribute name="maven.pomderived" value="true"/>
2019
</attributes>
2120
</classpathentry>
@@ -27,6 +26,31 @@
2726
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
2827
<attributes>
2928
<attribute name="maven.pomderived" value="true"/>
29+
<attribute name="optional" value="true"/>
30+
</attributes>
31+
</classpathentry>
32+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
33+
<attributes>
34+
<attribute name="maven.pomderived" value="true"/>
35+
<attribute name="test" value="true"/>
36+
<attribute name="optional" value="true"/>
37+
</attributes>
38+
</classpathentry>
39+
<classpathentry kind="src" path="target/generated-sources/annotations">
40+
<attributes>
41+
<attribute name="optional" value="true"/>
42+
<attribute name="maven.pomderived" value="true"/>
43+
<attribute name="ignore_optional_problems" value="true"/>
44+
<attribute name="m2e-apt" value="true"/>
45+
</attributes>
46+
</classpathentry>
47+
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
48+
<attributes>
49+
<attribute name="optional" value="true"/>
50+
<attribute name="maven.pomderived" value="true"/>
51+
<attribute name="ignore_optional_problems" value="true"/>
52+
<attribute name="m2e-apt" value="true"/>
53+
<attribute name="test" value="true"/>
3054
</attributes>
3155
</classpathentry>
3256
<classpathentry kind="output" path="target/classes"/>

.project

+11
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,15 @@
2020
<nature>org.eclipse.jdt.core.javanature</nature>
2121
<nature>org.eclipse.m2e.core.maven2Nature</nature>
2222
</natures>
23+
<filteredResources>
24+
<filter>
25+
<id>1731501434023</id>
26+
<name></name>
27+
<type>30</type>
28+
<matcher>
29+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31+
</matcher>
32+
</filter>
33+
</filteredResources>
2334
</projectDescription>

src/main/java/com/sbaars/adventofcode/network/FetchInput.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public FetchInput() {
2929
}
3030

3131
public static void main(String[] args) {
32-
new FetchInput().retrieveDay("24", "2023");
32+
new FetchInput().retrieveDay("1", "2024");
3333
}
3434

3535
private void retrieveDay(String day, String year) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.sbaars.adventofcode.year24;
2+
3+
import com.sbaars.adventofcode.common.Day;
4+
5+
public abstract class Day2024 extends Day {
6+
protected Day2024(int day) {
7+
super(2024, day);
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.sbaars.adventofcode.year24;
2+
3+
import com.sbaars.adventofcode.common.Day;
4+
5+
import java.io.IOException;
6+
import java.lang.reflect.InvocationTargetException;
7+
8+
public class Main {
9+
public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, InvocationTargetException, NoSuchMethodException {
10+
for (int day = 1; day <= 25; day++) {
11+
System.out.println("Day " + day + ":");
12+
Day instance = (Day) Class.forName("com.sbaars.adventofcode.year21.days.Day" + day).getDeclaredConstructor().newInstance();
13+
instance.printParts();
14+
System.out.println();
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day1 extends Day2024 {
6+
public Day1() {
7+
super(1);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day1().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
String input = day();
17+
return input;
18+
}
19+
20+
@Override
21+
public Object part2() {
22+
return 0;
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day10 extends Day2024 {
6+
public Day10() {
7+
super(10);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day10().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day11 extends Day2024 {
6+
public Day11() {
7+
super(11);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day11().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day12 extends Day2024 {
6+
public Day12() {
7+
super(12);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day12().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day13 extends Day2024 {
6+
public Day13() {
7+
super(13);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day13().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day14 extends Day2024 {
6+
public Day14() {
7+
super(14);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day14().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day15 extends Day2024 {
6+
public Day15() {
7+
super(15);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day15().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day16 extends Day2024 {
6+
7+
public Day16() {
8+
super(16);
9+
}
10+
11+
public static void main(String[] args) {
12+
new Day16().printParts();
13+
}
14+
15+
@Override
16+
public Object part1() {
17+
return "";
18+
}
19+
20+
@Override
21+
public Object part2() {
22+
return "";
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day17 extends Day2024 {
6+
public Day17() {
7+
super(17);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day17().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day18 extends Day2024 {
6+
public Day18() {
7+
super(18);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day18().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day19 extends Day2024 {
6+
7+
public Day19() {
8+
super(19);
9+
}
10+
11+
public static void main(String[] args) {
12+
new Day19().printParts();
13+
}
14+
15+
@Override
16+
public Object part1() {
17+
return "";
18+
}
19+
20+
@Override
21+
public Object part2() {
22+
return "";
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.sbaars.adventofcode.year24.days;
2+
3+
import com.sbaars.adventofcode.year24.Day2024;
4+
5+
public class Day2 extends Day2024 {
6+
public Day2() {
7+
super(2);
8+
}
9+
10+
public static void main(String[] args) {
11+
new Day2().printParts();
12+
}
13+
14+
@Override
15+
public Object part1() {
16+
return "";
17+
}
18+
19+
@Override
20+
public Object part2() {
21+
return "";
22+
}
23+
}

0 commit comments

Comments
 (0)