start 2024, 2024-01
This commit is contained in:
24
2024/generator.sh
Executable file
24
2024/generator.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for day in {1..25}; do
|
||||
if [[ $day -lt 10 ]]; then
|
||||
d="0${day}"
|
||||
else
|
||||
d="$day"
|
||||
fi
|
||||
tee "${d}.odin" <<EOF
|
||||
package aoc
|
||||
|
||||
import "core:fmt"
|
||||
import "core:log"
|
||||
import "core:os"
|
||||
|
||||
day${d} :: proc() {
|
||||
input, ok := os.read_entire_file("input/01")
|
||||
if !ok {
|
||||
log.fatal("Failed to read input")
|
||||
}
|
||||
fmt.println("Solution for Day ${d} is not implemented yet")
|
||||
}
|
||||
EOF
|
||||
done
|
||||
Reference in New Issue
Block a user