1
0

Day 3-6 2019

This commit is contained in:
2020-12-31 00:01:58 +01:00
parent 4fef41464e
commit ae327a4928
14 changed files with 1472 additions and 15 deletions
@@ -0,0 +1,11 @@
package be.vandewalleh.aoc.intcode;
public enum Mode {
Positional, Immediate;
public static Mode of(char representation) {
if (representation == '0') return Mode.Positional;
else if (representation == '1') return Mode.Immediate;
else throw new IllegalArgumentException("Unsupported Mode " + representation);
}
}