So I've gotten a little behind in this work. I have excuses .
This weekend I'm getting caught up.
How are the rest of you feeling about it? Are you staying on track?
Day 9 part 2 was too easy, just let the computer sit in a corner and do its job
And does it still sit in the corner?;-)
Got the first part done with list and value functions, brought this down to ~2.5 minutes. But then came the 2nd part: do this with 100 times the marbles, means ~7 million list values --> would take hours to complete if it even comes to an end.
Almost gave up, until I found this linked list technic in the forums, and it works! FM handles 14 million index variables nicely and handles part 2 in ~20 minutes
I used a similar solution. a ring list that is linked so every one knows the previous and the next item in the list, then you keep track if the current item in the list, add and remove when needed. How many iterations did you have to do?
70904 marbles x 100, 473 players
Mine was 411 players; last marble is worth 72059 * 100 points that is 7205900 iterations before I got an answer
Retrieving data ...