-
Notifications
You must be signed in to change notification settings - Fork 0
/
aoc.sh
executable file
·104 lines (71 loc) · 2.84 KB
/
aoc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
Color_Off='\033[0m'
IRed='\033[0;91m'
IGreen='\033[0;92m'
IYellow='\033[0;93m'
BIGreen='\033[1;92m'
bash get
stack build
echo -e "${BIGreen}Advent of Code 2023${Color_Off}"
star="\e[5;33m*\e[0m\e[1;32m"
o="\e[0m\e[1;31mo\e[0m\e[1;32m"
echo -e "
${star}
/.\\
/${o}..\\
/..${o}\\
/.${o}..${o}\\
/...${o}.\\
/..${o}....\\
^^^[_]^^^
"
echo -e "${IRed}--- Day 1: Trebuchet?! ---${Color_Off}"
stack exec day01 < input/day01.input
echo -e "${IYellow}--- Day 2: Cube Conundrum ---${Color_Off}"
stack exec day02 < input/day02.input
echo -e "${IGreen}--- Day 3: Gear Ratios ---${Color_Off}"
stack exec day03 < input/day03.input
echo -e "${IYellow}--- Day 4: Scratchcards ---${Color_Off}"
stack exec day04 < input/day04.input
echo -e "${IRed}--- Day 5: If You Give A Seed A Fertilizer ----${Color_Off}"
stack exec day05 < input/day05.input
echo -e "${IYellow}--- Day 6: Wait For It ---${Color_Off}"
stack exec day06 < input/day06.input
echo -e "${IGreen}--- Day 7: Camel Cards ---${Color_Off}"
stack exec day07 < input/day07.input
echo -e "${IYellow}--- Day 8: Haunted Wasteland ---${Color_Off}"
stack exec day08 < input/day08.input
echo -e "${IRed}--- Day 9: Mirage Maintenance ---${Color_Off}"
stack exec day09 < input/day09.input
echo -e "${IYellow}--- Day 10: Pipe Maze ---${Color_Off}"
stack exec day10 < input/day10.input
echo -e "${IGreen}--- Day 11: Cosmic Expansion ---${Color_Off}"
stack exec day11 < input/day11.input
echo -e "${IYellow}--- Day 12: The Great Escape ---${Color_Off}"
stack exec day12 < input/day12.input
echo -e "${IRed}--- Day 13: Point of Incidence ---${Color_Off}"
stack exec day13 < input/day13.input
echo -e "${IYellow}--- Day 14: Parabolic Reflector Dish ---${Color_Off}"
stack exec day14 < input/day14.input
echo -e "${IGreen}--- Day 15: Lens Library ---${Color_Off}"
stack exec day15 < input/day15.input
echo -e "${IYellow}--- Day 16: The Floor Will Be Lava ---${Color_Off}"
stack exec day16 < input/day16.input
echo -e "${IRed}--- Day 17: Clumsy Crucible ---${Color_Off}"
stack exec day17 < input/day17.input
echo -e "${IYellow}--- Day 18: Lavaduct Lagoon ---${Color_Off}"
stack exec day18 < input/day18.input
echo -e "${IGreen}--- Day 19: Aplenty ---${Color_Off}"
stack exec day19 < input/day19.input
echo -e "${IYellow}--- Day 20: Pulse Propagation ---${Color_Off}"
stack exec day20 < input/day20.input
echo -e "${IRed}--- Day 21: Step Counter ---${Color_Off}"
stack exec day21 < input/day21.input
echo -e "${IYellow}--- Day 22: Sand Slabs ---${Color_Off}"
stack exec day22 < input/day22.input
echo -e "${IGreen}--- Day 23: A Long Walk ---${Color_Off}"
stack exec day23 < input/day23.input
echo -e "${IYellow}--- Day 24: Never Tell Me The Odds ---${Color_Off}"
stack exec day24 < input/day24.input
echo -e "${IRed}--- Day 25: Snowverload ---${Color_Off}"
stack exec day25 < input/day25.input