Skip to content

Commit

Permalink
day 4, done
Browse files Browse the repository at this point in the history
  • Loading branch information
dieseltravis committed Dec 4, 2024
1 parent cb5953c commit a756de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ my 2024 solutions on ~~glitch: [meowing-holy-carbon](https://meowing-holy-carbon

also on github: [dieseltravis/aoc2024](https://github.com/dieseltravis/aoc2024)

[![Days completed in a row](https://img.shields.io/badge/⭐%20days%20in%20a%20row-3-blueviolet)](https://adventofcode.com/2024/) [![Node.js CI](https://github.com/dieseltravis/aoc2024/actions/workflows/node.js.yml/badge.svg)](https://github.com/dieseltravis/aoc2024/actions/workflows/node.js.yml) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?logo=javascript)](https://github.com/standard/semistandard)
[![Days completed in a row](https://img.shields.io/badge/⭐%20days%20in%20a%20row-4-blueviolet)](https://adventofcode.com/2024/) [![Node.js CI](https://github.com/dieseltravis/aoc2024/actions/workflows/node.js.yml/badge.svg)](https://github.com/dieseltravis/aoc2024/actions/workflows/node.js.yml) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?logo=javascript)](https://github.com/standard/semistandard)

## solutions:
Install node `>18.18.x`, `yarn`, run `yarn install`, and then `yarn start`.
Expand Down
2 changes: 1 addition & 1 deletion public/funs.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
const left = (x >= len - 1);
const right = (x + len - 1 < xmax);
console.log('up:' + up + ', down:' + down + ', left:' + left + ', right:' + right);
// look in all possible directions
// look in all possible directions
if (up) {
// look up
if (input[y - 1][x] === xmas[1] && input[y - 2][x] === xmas[2] && input[y - 3][x] === xmas[3]) {
Expand Down

0 comments on commit a756de7

Please sign in to comment.