WWW.RIDESIDE.NET

home | about | tracker | comics

*the* place for collaborative e-snowboarding
Posted by bizquig3000 on 2007-01-17 00:19:29 +0000

Rush Hour

Instead of cluing crosswords (what I should be doing), I've been trying to figure out these logic puzzles. Great fun.

Posted by tgl on 2007-01-17 00:46:10 +0000
5:11 until I got stumped at Level 8.

Posted by tommy on 2007-01-17 13:16:35 +0000
24:38 for all 12 levels, but that included a trip downstairs for an extra pastry and some quality time in a debugger. (Do any rsn geeks know how to tell gdb "break in function f(), but only if function f() has been called by function g()"?)

Posted by MF DU on 2007-01-17 16:05:54 +0000
no.

Posted by tgl on 2007-01-17 16:16:17 +0000
As much as I loathe Visual Studio (maybe because I'm still using ver. 6), I use it for debugging because gdb scares the bejeezus out of me.

Posted by tommy on 2007-01-17 16:25:39 +0000
VS has its charms, for sure, but scripting breakpoints is not one of them, as far as I can tell. Plus, this is a 32-bit-Linux-only problem, so it's not an option for me anyhow. Answer: In gdb, breakpoints can have associated commands that execute when the breakpoint is hit. I put two "breakpoints" in g(), one each before and after the call to f(). The first one sets a gdb variable to 1 and continues program execution. The second sets that variable back to 0 and continues. Then, I put a conditional breakpoint in f() that is only triggered when that variable has a value of 1. Works awesome. I apologize for hijacking a perfectly good logic puzzle thread. It won't happen again.

Posted by tgl on 2007-01-19 02:27:24 +0000
41:44 for 12. The last one took me ...16 minutes?? I can't believe I just clicked that long.

E-mail to tgl@rideside.net to add your tumblr.
Find me on github.