From c7cf6307074260418dbfa111d4c5132046f01ad4 Mon Sep 17 00:00:00 2001 From: encse Date: Tue, 24 Dec 2024 09:44:28 +0100 Subject: [PATCH] x --- 2024/Day24/README.md | 4 ++-- docs/build.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/2024/Day24/README.md b/2024/Day24/README.md index a1e59cbb..dcc49ec9 100644 --- a/2024/Day24/README.md +++ b/2024/Day24/README.md @@ -1,5 +1,5 @@ ## --- Day 24: Crossed Wires --- -You and The Historians arrive at the edge of a [large grove](/2022/day/23) somewhere in the jungle. After the last incident, the Elves installed a small device that monitors the fruit. While The Historians search the grove, one of them asks if you can take a look at the monitoring device; apparently, it's been malfunctioning recently. +You and The Historians arrive at the edge of a _large grove_ somewhere in the jungle. After the last incident, the Elves installed a small device that monitors the fruit. While The Historians search the grove, one of them asks if you can take a look at the monitoring device; apparently, it's been malfunctioning recently. The device seems to be trying to produce a number through some boolean logic gates. Each gate has two inputs and one output. The gates all operate on values that are either true (1) or false (0). @@ -17,5 +17,5 @@ Which are chained one after the other like this: I took the images from [build-electronic-circuits.com](https://www.build-electronic-circuits.com/full-adder/). -I implemented this logic in my 'fix' method. I start with the output x01 and y01 and try to identify the gates for the individual steps. Where I found an error, I manually checked my input to figure out what went wrong. I had just two different +I implemented this logic in my 'fix' method. I start with the inputs x01 and y01 and try to identify the gates for the individual steps. Where I found an error, I manually checked my input to figure out what went wrong. I had just two different kind of errors which can be corrected by the fixer. \ No newline at end of file diff --git a/docs/build.js b/docs/build.js index 62dcc04d..4a0efdc7 100644 --- a/docs/build.js +++ b/docs/build.js @@ -5,7 +5,10 @@ const marked = require('marked'); function media(dir){ const files = fs.readdirSync(dir); - return files.filter(file => path.extname(file).toLowerCase() === '.gif' || path.extname(file).toLowerCase() === '.png' ).map(file => path.join(dir, file)); + return files.filter(file => + path.extname(file).toLowerCase() === '.gif' || + path.extname(file).toLowerCase() === '.png' + ).map(file => path.join(dir, file)); } function* findReadmes(dir) {