Live data from Hacker News

The Eval Game

oskaerik.github.io

1–10 of 34 posts

Re: The Eval Game

#2
Seems very fun but the instructions are really unclear.

There's no indication of the class having to be defined in the scope (though it makes sense). The password isn't really clear on being in the filesystem (at first I assumed it's in the actual github repository for the game) and "no __builtins__" sounds more like you can't use the literal string "__builtins__".

I feel like it would've been so much more fun if you could see how the rules are checked instead of having to figure it out.

Re: The Eval Game

#3
post #2

Seems very fun but the instructions are really unclear. There's no indication of the class having to be defined in the scope (though it makes sense). The password isn't really clear on being in the filesystem (at first I assumed it's in the actual github repository for the game) and "no __builtins__" sounds more like you can't use the literal string "__builtins__". I feel like it would've been so much more fun if you…

Hint: it says "committed my password", as in a "git commit" :)

Re: The Eval Game

#4
Wow this broke Safaris text input, and I think it’s just a literal . How far the mighty Apple has fallen when a text input is so buggy.

Lord Jesus the hacks I had to do to avoid __builtins__. 281 chars total.

Re: The Eval Game

#7
post #6
post #5

I can't figure out how to type a newline on Android, so fail

pretty sure the point is that it's supposed to be in one line

It's supposed to be a single expression. You can write multiple lines by encasing the expression with parentheses.

Re: The Eval Game

#8
post #6
post #5

I can't figure out how to type a newline on Android, so fail

pretty sure the point is that it's supposed to be in one line

Thanks, not sure if if it's doable without walrus operator, which I've not had the occasion for previously.

Re: The Eval Game

#9
I'm no python expert, but if python really has a way to define named functions inside an expression, I'm not sure I want to know how to do it...

Re: The Eval Game

#10
post #9

I'm no python expert, but if python really has a way to define named functions inside an expression, I'm not sure I want to know how to do it...

i tried a lambda but not sure if it worked, so i gave up
Post reply on HN