AdventOfCodeXXXX/create.py
Luke Else 0b35b8f623
All checks were successful
Continuous integration / Check (push) Successful in 49s
Continuous integration / Test Suite (push) Successful in 51s
Continuous integration / Rustfmt (push) Successful in 36s
Continuous integration / build (push) Successful in 49s
/ Check (push) Successful in 50s
/ Test Suite (push) Successful in 52s
/ Rustfmt (push) Successful in 37s
/ Clippy (push) Successful in 51s
/ build (push) Successful in 53s
Tidied AOC XXXX
2024-11-21 05:30:44 +00:00

13 lines
448 B
Python

for day in range(1, 26):
boilerplate = open(".\\src\\solutions\\dayxx.rs", "r").read()
boilerplate = boilerplate.replace("0", str(day))
boilerplate = boilerplate.replace("XX", f"{day:02d}")
new_code = open(f".\\src\\solutions\\day{day:02d}.rs", "w")
new_code.write(boilerplate)
f = open(f".\\input\\day{day:02d}", "x")
f = open(f".\\input\\day{day:02d}_test1", "x")
f = open(f".\\input\\day{day:02d}_test2", "x")