Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Load more
@pyspud.bsky.socialDec 2, 2026, 1:03 PM

I just completed "Dusty Shed" - Day 1 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/1

adventofcode.comDay 1 - Advent of Code 2026
@0x1ac.bsky.socialDec 2, 2026, 1:00 PM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
@chasingdings.comDec 2, 2026, 12:40 PM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
?Unknown authorDec 2, 2026, 12:34 PM

I just completed "Dusty Shed" - Day 1 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/1

adventofcode.comDay 1 - Advent of Code 2026
@gts.iliazeus.lolDec 2, 2026, 12:32 PM

[Advent of Code day 2]

I went with a greedy algorithm in Part 2 and got the star. But I am now having doubts whether this works in the general case.

#AdventOfCode

@adrianasturalvarez.bsky.socialDec 2, 2026, 12:25 PM

WOOHOO! This time I used JavaScript for part 1 and bash for part 2.

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode https://
adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
@zxprinter.bsky.socialDec 2, 2026, 12:19 PM

Advent of Code day 2 in 8-bit Pascal, compiled with PASTA/80 and running on a ZX Spectrum Next. Cyan instead of orange because we're Sinclair. 😎 Runtime is around 10 seconds and goes almost exclusively into drawing things as we go.

#adventofcode #pascal #z80 #spectrumnext #zxspectrumnext

Advent of Code day 2 solution screenshot
@trendtags.bsky.socialDec 2, 2026, 12:15 PM

🚀 BlueSky trending tags (15m):

#pmqs #politicslive #一次創作 #adventofcode #birds #birdoftheday #artadventcalendar #christmas #animeart #섹블 #pokemon #gardening #議員定数削減反対 #gaza #12月になったのでフォロワーさんに自己紹介しようぜ

@niknarmo.bsky.socialDec 2, 2026, 12:08 PM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
@saltthewind.bsky.socialDec 2, 2026, 12:08 PM

Aaaand another one:

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
?Unknown authorDec 2, 2026, 12:06 PM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

Doing these in Rust, in vim, as a way of forcing myself to learn the syntax and moment-by-moment reasoning that a year of Claude-ing Rust has not impressed upon my brain at all

adventofcode.comDay 2 - Advent of Code 2026
?Unknown authorDec 2, 2026, 12:05 PM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 in #Ruby #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
?Unknown authorDec 2, 2026, 12:02 PM

I've completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

Created an animated stepper for the robot's progress too.
Solution for the core solution, in Swift, in the image alt text.

public enum Day02 {
  public static let puzzle = Puzzle(
    day: 2,
    title: "Fulminating Farmland",
    part1: { input in
      let instructions = try parseInput(input: input)

      return "\(calculateDistance(start: startingWaypointID, instructions: instructions))"
    },
    part2: { input in
      let reorderedInstructions = try parseInput(input: input).sorted(by: >)

      return "\(calculateDistance(start: startingWaypointID, instructions: reorderedInstructions))"
    }
  )

  private static func parseInput(input: String) throws -> [Int] {
    // Trim surrounding whitespace, then convert each waypoint colour to its ID.
    // Throw if any character is not a waypoint colour.
    return try Array(input.trimmingCharacters(in: .whitespacesAndNewlines)).map { character in
      guard let id = waypointID[character] else {
        throw InputError.invalidCharacter(character)
      }
      return id
    }
  }

  private static func calculateDistance(start: Int, instructions input: [Int]) -> Int {
    var currentWP = start, distance: Int = 0

    for nextWP in input {
      distance += stepsMatrix[currentWP][nextWP]
      currentWP = nextWP
    }

    return distance
  }

  private static let startingWaypointID = 5
  private static let waypointID: [Character: Int] = ["r": startingWaypointID, "o": 0, "y": 1, "g": 2, "b": 3, "v": 4]

  private static let stepsMatrix = [[6,1,2,3,4,5],
                                    [5,6,1,2,3,4],
                                    [4,5,6,1,2,3],
                                    [3,4,5,6,1,2],
                                    [2,3,4,5,6,1],
                                    [1,2,3,4,5,6]]

}
@sirioud.bsky.socialDec 2, 2026, 12:00 PM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026
@toptags.bsky.socialDec 2, 2026, 12:00 PM

🔥 BlueSky trending tags (30m) #16-30:

#books #ai #illustration #ausveng #writingcommunity #otd #zenlesszonezero #adventofcode #aiイラスト #furryart #裏垢 #イラスト #メンエス #cdnpoli #investing

👇 #1-15 trending tags

TTrending Tags@trendtags.bsky.socialDec 2, 2026, 12:00 PM

🔥 BlueSky trending tags (30m): #humpday #vss365 #art #truestories #mirror #booksky #oc #weekvforvice #alphabetchallenge #fotovorschlag #filmsky #paranormal #photography #かわいいと思う画像をなんでもいいので無言で1枚あげろ #google

@facundobatista.bsky.socialDec 2, 2026, 11:59 AM

I just completed "Fulminating Farmland" - Day 2 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/2

adventofcode.comDay 2 - Advent of Code 2026