Ceres Search

Advent of Code 2024 [Day 4]

04-12-2024

“Looks like the Chief’s not here. Next!” One of The Historians pulls out a device and pushes the only button on it. After a brief flash, you recognize the interior of the Ceres monitoring station!

As the search for the Chief continues, a small Elf who lives on the station tugs on your shirt; she’d like to know if you could help her with her word search (your puzzle input). She only has to find one word: XMAS.

This word search allows words to be horizontal, vertical, diagonal, written backwards, or even overlapping other words. It’s a little unusual, though, as you don’t merely need to find one instance of XMAS - you need to find all of them. Here are a few ways XMAS might appear, where irrelevant characters have been replaced with .:

..X...
.SAMX.
.A..A.
XMAS.S
.X....

The actual word search will be full of letters instead. For example:

MMMSXXMASM
MSAMXMSMSA
AMXSXMAAMM
MSAMASMSMX
XMASAMXAMM
XXAMMXXAMA
SMSMSASXSS
SAXAMASAAA
MAMMMXMMMM
MXMXAXMASX

In this word search, XMAS occurs a total of 18 times; here’s the same word search again, but where letters not involved in any XMAS have been replaced with .:

....XXMAS.
.SAMXMS...
...S..A...
..A.A.MS.X
XMASAMX.MM
X.....XA.A
S.S.S.S.SS
.A.A.A.A.A
..M.M.M.MM
.X.X.XMASX

Take a look at the little Elf’s word search. How many times does XMAS appear?

function findXMAS(grid: string[][]): number {
  const height = grid.length;
  const width = grid[0].length;
  const directions = [
    [-1, -1], [-1, 0], [-1, 1],
    [0, -1],           [0, 1],
    [1, -1],  [1, 0],  [1, 1]
  ];
  const word = "XMAS";

  let count = 0;
  for (let y = 0; y < height; y++) {
    for (let x = 0; x < width; x++) {
      for (const [dy, dx] of directions) {
        let found = true;
        for (let i = 0; i < word.length; i++) {
          const newY = y + dy * i;
          const newX = x + dx * i;
          if (newY < 0 || newY >= height || 
              newX < 0 || newX >= width ||
              grid[newY][newX] !== word[i]) {
            found = false;
            break;
          }
        }
        if (found) count++;
      }
    }
  }

  return count;
}

async function main() {
  const text = await Deno.readTextFile("input.txt");
  const grid = text.trim().split("\n").map(line => line.split(""));
  const result = findXMAS(grid);
  console.log(`XMAS appears ${result} times`);
}

main().catch((err) => console.error(err));

The Elf looks quizzically at you. Did you misunderstand the assignment?

Looking for the instructions, you flip over the word search to find that this isn’t actually anXMAS puzzle; it’s an X-MAS puzzle in which you’re supposed to find two MAS in the shape of an X. One way to achieve that is like this:

M.S
.A.
M.S

Irrelevant characters have again been replaced with . in the above diagram. Within the X, each MAS can be written forwards or backwards.

Here’s the same example from before, but this time all of the X-MASes have been kept instead:

.M.S......
..A..MSMS.
.M.S.MAA..
..A.ASMSM.
.M.S.M....
..........
S.S.S.S.S.
.A.A.A.A..
M.M.M.M.M.
..........

In this example, an X-MAS appears 9 times.

Flip the word search from the instructions back over to the word search side and try again. How many times does an X-MAS appear?

function findXMAS(grid: string[][]): number {
  const height = grid.length;
  const width = grid[0].length;

  let count = 0;
  for (let y = 1; y < height - 1; y++) {
    for (let x = 1; x < width - 1; x++) {
      if (grid[y][x] !== 'A') continue;
      if (
        ( checkDiagonal(grid, x, y, -1, -1, 'M') &&
        checkDiagonal(grid, x, y, 1, 1, 'S') || 
        checkDiagonal(grid, x, y, -1, -1, 'S') &&
        checkDiagonal(grid, x, y, 1, 1, 'M') )
        &&
        ( checkDiagonal(grid, x, y, -1, 1, 'M') &&
        checkDiagonal(grid, x, y, 1, -1, 'S') || 
        checkDiagonal(grid, x, y, -1, 1, 'S') &&
        checkDiagonal(grid, x, y, 1, -1, 'M') )
      ) count++;
    }
  }
  return count;
}

function checkDiagonal(
  grid: string[][],
  x: number,
  y: number,
  dy: number,
  dx: number,
  expected: string
): boolean {
  const newY = y + dy;
  const newX = x + dx;
  return newY >= 0 && newY < grid.length &&
         newX >= 0 && newX < grid[0].length &&
         grid[newY][newX] === expected;
}

async function main() {
  const text = await Deno.readTextFile("input.txt");
  const grid = text.trim().split("\n").map(line => line.split(""));
  const result = findXMAS(grid);
  console.log(`XMAS appears ${result} times`);
}

main().catch((err) => console.error(err));
Click to show the input
XASXMAXXMSXXSMMSXMMSMXSMXMSSMSSSMMSMAMXMXSMMMMAXAMXSASXSSMMSSMXAMXMSAMXMM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