-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday11.test.ts
235 lines (200 loc) · 11.7 KB
/
day11.test.ts
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/* === TYPES === */
enum Seat {
floor = ".",
empty = "L",
occupied = "#",
}
type World = Readonly<Seat[][]>;
type GetNeighbours = (world: World, x: number, y: number) => Seat[];
/* === PREPARE INPUT === */
export const prepareInput = ([input]: TemplateStringsArray): World =>
input.split("\n").map((line) => line.split("") as Seat[]);
/* === UTILS === */
// prettier-ignore
const neighbours = [
[-1, -1], [-1, 0], [-1, 1],
[ 0, -1], /*0, 0*/ [ 0, 1],
[ 1, -1], [ 1, 0], [ 1, 1],
];
const getDirectNeighbours: GetNeighbours = (world, x, y) =>
neighbours.map(([dx, dy]) => world[x + dx]?.[y + dy] || Seat.floor);
const getFirstInSight: GetNeighbours = (world, x, y) =>
neighbours.map(([dx, dy]) => {
let steps = 1;
while (true) {
const [gx, gy] = [x + dx * steps, y + dy * steps];
if (!world[gx]?.[gy]) {
return Seat.floor;
}
if (world[gx][gy] !== Seat.floor) {
return world[gx][gy];
}
steps++;
}
});
const countOccupied = (seats: Seat[]): number =>
seats.filter((seat) => seat === Seat.occupied).length;
const countOccupiedInWorld = (world: World): number =>
countOccupied(world.flat());
const runSeat = (
world: World,
seat: Seat,
x: number,
y: number,
leaveAt: number,
getNeighbours: GetNeighbours
): Seat => {
if (seat === Seat.floor) return Seat.floor;
const occupiedNeighbours = countOccupied(getNeighbours(world, x, y));
if (seat === Seat.empty && occupiedNeighbours === 0) return Seat.occupied;
if (seat === Seat.occupied && occupiedNeighbours >= leaveAt)
return Seat.empty;
return seat;
};
const run = (
world: World,
leaveAt: number,
getNeighbours: GetNeighbours
): World =>
world.map((row, i) =>
row.map((seat, j) => runSeat(world, seat, i, j, leaveAt, getNeighbours))
);
/* === IMPLEMENTATION === */
const occupiedWhenStable = (
world: World,
leaveAt: number = 4,
getNeighbours: GetNeighbours = getDirectNeighbours
): number => {
let prev: World = [[]];
do {
prev = world;
world = run(world, leaveAt, getNeighbours);
} while (countOccupiedInWorld(world) !== countOccupiedInWorld(prev));
return countOccupiedInWorld(world);
};
/* === TESTS === */
test("Day 11a - test", () => {
const result = occupiedWhenStable(testInput);
expect(result).toBe(37);
});
test("Day 11a - prod", () => {
const result = occupiedWhenStable(prodInput);
expect(result).toBe(2275);
});
test("Day 11b - test", () => {
const result = occupiedWhenStable(testInput, 5, getFirstInSight);
expect(result).toBe(26);
});
test("Day 11b - prod", () => {
const result = occupiedWhenStable(prodInput, 5, getFirstInSight);
expect(result).toBe(2121);
});
/* === INPUTS === */
const testInput = prepareInput`L.LL.LL.LL
LLLLLLL.LL
L.L.L..L..
LLLL.LL.LL
L.LL.LL.LL
L.LLLLL.LL
..L.L.....
LLLLLLLLLL
L.LLLLLL.L
L.LLLLL.LL`;
const prodInput = prepareInput`LLLLLLLLL.LLLL.LLLLL.LLLLLLLLLL.LLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL.LLLLLLL.LLLLLLLL
LLLLLLLLL.LLLL.LLLLLLLLLLLL.LLLLLLLLLLLLL.L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