News for hackers. Stuff that matters.
Re:Show HN: The Choice – An online programming puzzle RPG by effbott on Thursday May 30, 2013 @09:09PM (#5796282)
Nested if statements? I'd be interested to see how that looks.

You only need one if statement, and you only have to involve a single guard.

Re:Show HN: The Choice – An online programming puzzle RPG by potench on Saturday June 01, 2013 @08:21PM (#5806700)
Spoiler: Curious what other people did here. My approach on each step was to simply "test" some code to see what happened before attempting to solve the puzzle. I tested `@xzoor.isTrue(0)` just to see... not very creative but it works for finding the lying guard.

I used the same approach to test the last puzzle (#ship) and did: `for n in @numans n.board(@vehicle) @vehicle.fly(#3127)` which ends the game (even though this doesn't satisfy the puzzle).