Post AQC2BS0YJ9yUVIn6Rc by moddedBear@fosstodon.org
(DIR) More posts by moddedBear@fosstodon.org
(DIR) Post #AQC2BS0YJ9yUVIn6Rc by moddedBear@fosstodon.org
2022-12-02T06:11:38Z
0 likes, 0 repeats
Day 2 of #AdventOfCode is done! I managed to make the diff between parts 1 and 2 only one line. My solution is here for the curious:https://github.com/moddedBear/advent-of-code/tree/master/2022/2-rock-paper-scissors
(DIR) Post #AQC2BSy6jjc5U0efGy by sotolf@social.linux.pizza
2022-12-02T09:06:31Z
1 likes, 0 repeats
@moddedBear pfft why be clever when you can brute force?https://gist.github.com/sotolf2/0d7eb956d26508087d4a696e387c55e2
(DIR) Post #AQC2BTrlOo8IGch71U by moddedBear@fosstodon.org
2022-12-02T06:12:23Z
0 likes, 0 repeats
Also it's only day 2 and I've already given up on doing these in Rust. Python it is!
(DIR) Post #AQC2C2rHIbXanFjicq by paul@notnull.click
2022-12-02T10:18:30.132494Z
0 likes, 0 repeats
@sotolf @moddedBear elegant and effective! 🤣
(DIR) Post #AQC2vDozNx0zpHCwQy by sotolf@social.linux.pizza
2022-12-02T10:26:11Z
1 likes, 0 repeats
@paul @moddedBear Yeah, I make awk seem way better than nim on these, since I do them in nim first, and only do awk after I know the problem and so better, so I can take everything I learned from the first solution into mind :)
(DIR) Post #AQC3SrnLmlAXMGU5UO by sotolf@social.linux.pizza
2022-12-02T10:31:56Z
1 likes, 0 repeats
@paul @moddedBear I was worried about the amount of different combinations when writing my first solution, if I just had thought about doingcat day2.txt | sort -ubefore doing it I would have saved myself a lot of thinking :p