Ah, gotcha -- thanks!
--
Raul
On Tue, Jan 11, 2022 at 11:23 AM 'Michael Day' via Programming
wrote:
>
> I think it's easier to post my code than to try answering your question.
> I've run successfully this in a new session, so I think it's
> self-contained.
>
> Apologies for the verbose code -
I think it's easier to post my code than to try answering your question.
I've run successfully this in a new session, so I think it's
self-contained.
Apologies for the verbose code - it's as I wrote it, and I haven't
attempted
to polish it for presentation here. The function "part2" , not s
Your 10&|&.<: is probably more comprehensible than my 11 |&.<:
But for part B, how did you handle the smearing of scores that
resulted from those new positions and counts?
Thanks,
--
Raul
On Mon, Jan 10, 2022 at 7:07 PM 'Mike Day' via Programming
wrote:
>
> Part 1 was relatively easy, but I
Part 1 was relatively easy, but I was annoyed that I couldn’t see how to
exploit its cyclic nature. Here’s a comment to self from my script:
“ m10 +/\"1}."1 |: 15 2 $+/|:30 3$die
4 6 6 4 10 4 6 6 4 10 4 6 6 4
3 4 3 10 5 8 9 8 5 10 3 4 3 10
NB. Players 1 2 score 60 65 respectively every 10
https://adventofcode.com/2021/day/21
For day 21, we played a "dice game" with two chess pawns.
The game was a two player game, with a track with 10 positions,
labeled 1 through 10, and the data for the puzzle was the player's
starting positions.
example=:{{)n
Player 1 starting position: 4
Player