renamed files to padded numbers

master
fettlaus 6 years ago
parent d732503bf1
commit 2cd954b32a
  1. 0
      days/input/day01_input
  2. 0
      days/input/day02_input
  3. 0
      days/input/day03_input
  4. 0
      days/input/day05_input
  5. 0
      days/input/day06_input
  6. 0
      days/input/day07_input
  7. 0
      days/input/day08_input
  8. 0
      days/input/day09_input
  9. 2
      days/test_day01.py
  10. 2
      days/test_day02.py
  11. 2
      days/test_day03.py
  12. 0
      days/test_day04.py
  13. 2
      days/test_day05.py
  14. 2
      days/test_day06.py
  15. 2
      days/test_day07.py
  16. 2
      days/test_day08.py
  17. 2
      days/test_day09.py

@ -1,7 +1,7 @@
import os
inputfile = os.path.join(os.path.dirname(__file__), "input/day1_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day01_input")
def calc_fuel(mass):

@ -3,7 +3,7 @@ import os
from . import OpcodeComputer
inputfile = os.path.join(os.path.dirname(__file__), "input/day2_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day02_input")
def test_day2a():

@ -2,7 +2,7 @@ import os
import sys
inputfile = os.path.join(os.path.dirname(__file__), "input/day3_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day03_input")
def draw_path(inst):

@ -3,7 +3,7 @@ import os
from . import OpcodeComputer
inputfile = os.path.join(os.path.dirname(__file__), "input/day5_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day05_input")
def test_day5a():

@ -3,7 +3,7 @@ from typing import Dict
def get_code() -> Dict[str, str]:
inputfile = os.path.join(os.path.dirname(__file__), "input/day6_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day06_input")
with open(inputfile) as fp:
return {x[1].rstrip(): x[0] for x in
(y.split(')') for y in fp.readlines())}

@ -4,7 +4,7 @@ import os
from . import OpcodeComputer
inputfile = os.path.join(os.path.dirname(__file__), "input/day7_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day07_input")
def test_day7a():

@ -6,7 +6,7 @@ imgsize = 25 * 6
def get_image():
inputfile = os.path.join(os.path.dirname(__file__), "input/day8_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day08_input")
with open(inputfile) as fp:
img = [int(k) for k in str(fp.readline())]
breaks = [imgsize*k for k in range(len(img)//imgsize+1)]

@ -4,7 +4,7 @@ import os
from .comp import OpcodeComputer
inputfile = os.path.join(os.path.dirname(__file__), "input/day9_input")
inputfile = os.path.join(os.path.dirname(__file__), "input/day09_input")
def test_day9a():
Loading…
Cancel
Save