All the Riddler Source Code


So I’ve gotten sick of fighting with WordPress in each post trying to nicely format my C++ code when I post, so I decided to start posting it to and providing links to the formatted and raw files. This will allow you to easily follow the link and copy-pasta the code if you want.

Here are links to previous Riddler posts and source code:

Secret Election: Post. Source.

River Crossing: Post. Source.

Neurotic Shooter: Post. Source.

Sadistic Salesman: Post. Source.

From now on, I’ll just take a picture of the relevant code for a post and post that, with a link to the raw code. Or something. It’s a work in progress.

Author: Wiesman

Husband, father, video game developer, liberal, and perpetual Underdog.

4 thoughts on “All the Riddler Source Code”

  1. Have you had any thoughts on Friday’s highway riddle? I think I’ve identified the answer (harmonic series sum up to 1/N) but I can’t figure out the proof exactly.

    1. Hi, yeah, I’ve been working on it. I have an answer but not a proof, and I’m not sure I’ll get one. Each answer for average number of packs for n cars depends on the answer for n-1 cars. I’ve identified the pattern and I kind of know why, but a mathematical proof is beyond this programming nerd. Post coming soon.


Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s