--- /dev/null
+\ Advent of Code 2026 - Day 1
+
+
+
+
+\ 0 container-count+
+\ 0 container-count+
+\ 0 container-count+
+
+\ container-ids @ @ .s
+
+\ allocate a buffer
+\ read a file line by line
+\ for each line in the file
+\ parse the line into a container ID
+\ increment the container count for that id
+\ end for each line
+
+
+
+
+256 constant max-line
+
+create line-buffer
+ max-line 2 + allot
+
+create container-ids
+ 1024 cells allot
+
+: container-count+
+ cells
+ container-ids @ +
+ dup @ 1 +
+ swap !
+;
+
+
+s" 1.txt" r/o open-file
+\ line-buffer max-line fd-in read-line throw
+
+
+\ line-buffer ."
+
+\ .s
+\ bye ; *waves*
--- /dev/null
+#!/usr/bin/env ruby
+
+pp File.read("1.txt").lines.map(&:to_i).tally.map { |k, v| [v, k] }.sort[-3..-1].map(&:last).reduce(:*)
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env ruby
+
+WAYPOINTS = "roygbv".chars.cycle
+PROG = File.read("2.txt").strip
+
+curr = 0
+total = 0
+PROG.each_char do |c|
+ curr = (curr + 1) % 6
+ count = 1
+ WAYPOINTS.next
+ while WAYPOINTS.peek != c
+ count += 1
+ WAYPOINTS.next
+ end
+ total += count
+end
+pp total
+