mykdavies

mykdavies

Shows the Silver Award... and that's it.

Thank you stranger. Shows the award.

When you come across a feel-good thing.

Can't stop seeing stars





mykdavies

Shows the Silver Award... and that's it.

Gives 100 Reddit Coins and a week of r/lounge access and ad-free browsing.

Thank you stranger. Shows the award.

When you come across a feel-good thing.






mykdavies

Shows the Silver Award... and that's it.


mykdavies

Shows the Silver Award... and that's it.

Thank you stranger. Shows the award.








mykdavies

Shows the Silver Award... and that's it.

Gives 100 Reddit Coins and a week of r/lounge access and ad-free browsing.

Gives 700 Reddit Coins and a month of r/lounge access and ad-free browsing.

Thank you stranger. Shows the award.

When you come across a feel-good thing.








mykdavies

Shows the Silver Award... and that's it.

Thank you stranger. Shows the award.


  1. Is today the day when you discovered you have a grandchild who's on reddit?

  2. That's super weird; I wonder if this hadn't something to do with the size of the page - - it's grown big over time - - and maybe it's timing out for you / your client? (I am on the go right now, so I cannot investigate any further)

  3. It looks like my reddit client (Apollo) is expanding the # in the url to a %23 which obviously breaks the URL.

  4. OK, thanks for digging deeper; I will try and keep this in mind next time I post something (if anything by mentioning that this could happen).

  5. No worries, I've reported this as a bug as it's clearly not the correct behaviour on the client.

  6. Nice work! Especially for the Advent of Code junkies.

  7. I made a zoom feature for the input files - could you check that it is not set to the lowest value? That would make the page appear almost completely black 😊

  8. I wasn't getting any of the top content either, so it wasn't that. I just tried reloading it again and the data is back so it must have needed a little break. Thanks for looking into it, and I'll let you know through the sub you've set up if I see this behaviour in the future.

  9. There are some very clever solutions using symbolic logic but I solved this using basically the same approach that you are using. Three simple things worth thinking about, each of which will save you a tremendous amount of storage and processing:

  10. Well, a couple of branches at least :-)

  11. I almost did it but day 24, oddly enough, broke me. I was attempting to solve it with a program instead of just doing it by hand. I had to give up and go to sleep. ...next day, nope, turned out doing it by hand worked fine.

  12. Haha I was very lucky my girlfriend was very understanding this morning :-)

  13. If you're still looking for hints, here's my writup of the solution:

  14. Thanks for this, I have saved it and will spend some time thinking about it after Christmas!

  15. Astounding. Sometimes I feel like I'm just banging rocks together here.

  16. Top choices there. I hope you get the answer soon!

  17. Sorry if I misunderstood, but shouldn’t you be using a three-sided die at this point?

  18. The 3 sidedness comes from the combos that I iterate through. 36 gives 729 different sets of 6 rolls. 3 for player 1 and 3 for player 2. Unless that's just exceedingly wrong idk.

  19. Ah, I saw the 6 there and immediately misread it as 63. I assume you’re doing it that way to avoid duplicating the code for each player. I just went the lazy route there so I can’t really help. Good luck finding the issue.

  20. Hello, I originally attempted to do something similar, but then I got thrown off by the case where you get two "off" cubes in a row. How does your algo handle that?

  21. Haha, great question! I had to add a test case for that just now to make sure I understood it correctly :-)

  22. Lovely stuff, thanks for taking the time and effort to do this every year.

  23. Aarrrgh. I now know what those stupid sounding classes were that I avoided because they sounded like something rendering related. I guess that if you know what AABB is, then a class called "AABB3" is self-explanatory.

  24. Fucked my entire evening yesterday. Why did we say this was fun again?

  25. :-), I managed yesterday okay so today is killing me instead.

  26. Ah thanks. I figured this could only be reasonably done with recursion but if there’s a way to think about this iteratively, I’m all ears.

  27. At the end of a player’s move a given game is in a state which can be completely described by four variables: each player’s score and each player’s position. Given that there are a limited and easily modelable set of outcomes of the next group of three rolls, it’s easy to work out which next states are possible and how often each will arise.

  28. It’s probably 100% that nasty Dihydrogen Monoxide I’ve been hearing so many warnings about.

  29. Two years of lessons from Comp Sci: drake-no.jpg

  30. Haha I got halfway through writing my solution when I realised that’s exactly what I was modelling. I had to read the instructions again to make sure I wasn’t missing anything.

Leave a Reply

Your email address will not be published. Required fields are marked *