Discussion thread for day 4 of the Advent of Code - https://adventofcode.com/2024/day/4
My solution.
That was great :D
I had to use two batch macros to solve it. I am really curious how other experts solved it. I believe it will be very inspiring :P
Picking up a bit
(([0_col]=[1_col] AND [1_col]=[2_col] AND [2_col]=[col])
AND (ABS([0_Row]-[1_Row])=1 AND ABS([1_Row]-[2_Row])=1 AND ABS([2_Row]-[Row])=1))
OR
(([0_Row]=[1_Row] AND [1_Row]=[2_Row] AND [2_Row]=[Row])
AND (ABS([0_col]-[1_col])=1 AND ABS([1_col]-[2_col])=1 AND ABS([2_col]-[col])=1))
OR
(([col]-[2_col]=1 AND [2_col]-[1_col]=1 AND [1_col]-[0_col]=1)
AND (([Row]-[2_Row]=1 AND [2_Row]-[1_Row]=1 AND [1_Row]-[0_Row]=1) OR ([Row]-[2_Row]=-1 AND [2_Row]-[1_Row]=-1 AND [1_Row]-[0_Row]=-1)))
OR
(([col]-[2_col]=-1 AND [2_col]-[1_col]=-1 AND [1_col]-[0_col]=-1)
AND (([Row]-[2_Row]=1 AND [2_Row]-[1_Row]=1 AND [1_Row]-[0_Row]=1) OR ([Row]-[2_Row]=-1 AND [2_Row]-[1_Row]=-1 AND [1_Row]-[0_Row]=-1)))
If you value your mental well-being then please don't open this spoiler. However, as a wise man once said... "2 stars is 2 stars my son".
Phew. Finally got this one. I should have flexed my AoC muscles earlier, this one brought back all the memories. Hope you all managed to find me!!!
SAM was everywhere in that wordsearch! Was a massive distraction!
D4. More in spoiler