mirror of
https://github.com/Zormm/Advent-Of-Code-2022.git
synced 2026-02-26 07:26:51 +01:00
.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
public class main {
|
||||
public static void main(String[] args) throws IOException {
|
||||
RandomAccessFile file = new RandomAccessFile("input.txt", "r");
|
||||
String str;
|
||||
|
||||
//Part 1
|
||||
System.out.print("Part 1: ");
|
||||
|
||||
while ((str = file.readLine()) != null) {
|
||||
System.out.println(str);
|
||||
int blueprintID = Integer.typeOf(str.subString(11,12));
|
||||
int costOfOreRobot = str.subString();
|
||||
simulateRobotWithBlueprints();
|
||||
}
|
||||
//Part 2
|
||||
System.out.print("Part 2: ");
|
||||
}
|
||||
|
||||
public int simulateRobotWithBlueprints(int costOfOreRobot, int costOfClayRobot, int costOfObsidianRobot, int costOfGeodeRobot, int timeInMinutes) {
|
||||
int maximumNumberOfOpenedGeodes = 0;
|
||||
|
||||
return maximumNumberOfOpenedGeodes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user