Skip to content

Latest commit

Β 

History

History

13

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸŽ„ Day 13

In Zig

A simpler day, didnt need any hints thankfully. Tho in the first part i made a mistake which caused a bug that wouldnt count mirrors like

v.##..#...#.#.v
^.##..#...#.#.^
 .....#..####.
 .##.#.#..###.
 .##...#..#..#
 #####.##.#.#.
 #.##.#..#.#.#

where the mirror is horizontal on the first row. I didnt have much time today to spend tracking the bug down myself so i used someone elses code to find out what the correct output was and then found which mirrors my code got wrong and realised that it doesnt count mirrors that are on the first row or first column.

Part 2 was pretty easy and i had no problems. Pretty fun day and im enjoying Zig so far, though not as much as Elixir.

Quickstart

To run part 1 or part 2, do:

$ make part1
$ make part2