r/adventofcode • • Dec 05 '16

SOLUTION MEGATHREAD --- 2016 Day 5 Solutions ---

--- Day 5: How About a Nice Game of Chess? ---

Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).


STAYING ON TARGET IS MANDATORY [?]

This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.

edit: Leaderboard capped, thread unlocked!

14 Upvotes

188 comments sorted by

View all comments

Show parent comment

1

u/topaz2078 (AoC creator) Dec 05 '16

You should consider implementing a simple progress indicator; maybe produce output whenever your counter hits some target, then multiply the target by 2 or 10 and repeat.

I have Perl on a 2.5ghz that finishes it in less than 30 seconds.

1

u/Godspiral Dec 05 '16

I do that, but I'd need to output to a file instead of JQT because even console outputs waits until the function finishes before updating.

But, that wasn't the real problem. Slow hash per second rate was the problem. That can't be vectorized for J