mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-12-26 12:01:45 +00:00
use regular set 0 for aesthetics
This commit is contained in:
parent
a0b9c210e6
commit
f59e1530a5
@ -12,8 +12,8 @@ const maps = input.slice(1).map((a) => {
|
||||
const [_, L, R] = mapping;
|
||||
return { name, mapping: { L, R } };
|
||||
});
|
||||
let count,
|
||||
index = (count = 0);
|
||||
let count = 0,
|
||||
index = 0;
|
||||
let current = maps.find((e) => e.name === "AAA");
|
||||
while (current.name !== "ZZZ") {
|
||||
const direction = instructions[index];
|
||||
|
@ -12,8 +12,8 @@ const maps = input.slice(1).map((a) => {
|
||||
const [_, L, R] = mapping;
|
||||
return { name, mapping: { L, R } };
|
||||
});
|
||||
let count,
|
||||
index = (count = 0);
|
||||
let count = 0,
|
||||
index = 0;
|
||||
let current = maps.find((e) => e.name === "AAA");
|
||||
while (current.name !== "ZZZ") {
|
||||
const direction = instructions[index];
|
||||
|
Loading…
Reference in New Issue
Block a user