Part 1 went smoothly for me, but I had to take a phone call and will finish part 2 tomorrow finished a bit late. Opening the thread for discussion now.
Part 2 tripped me up because I was imagining some crazy matrix transform but it turned out to be much simpler.
Today was a bit mundane. It reminded me of teaching Pascal to first year students. I used a vector of unbounded strings, and then scan in all 8 directions for XMAS. The second assignment was even simpler.
Seems to me that most of the challenges results in a Command Line Interface app.
I’ve done this one just to check if bbt was useful in this context, and it is.
I could build gradually the exe, and pass the test at first try.
One of the test, to give you an idea:
## Scenario example 2
- Given the file `input_ex2`
```
....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
```
- When I run `day_04 XMAS input_ex2`
- Then output contains `Pattern Count = 18`