This comment is hidden because it contains spoiler information about the solution
When rounding the answers, ceil, floor, and round all failed a different subset of the tests.
ceil
floor
round
I guess you're thinking about r'\bopen\s*\('? But, it's not safe enough:
r'\bopen\s*\('
opener = open opener("stuff")
would pass the check without problems.
This would actually be quite trivial with a little regex... certainly no AI is necessary.
"why not?", I'd say?
Why use lambdas if you're just going to assign them to names? You may as well use the (more readable) standard def syntax.
def
Python supports inner functions; you can put eply, mcglothin, and lombardi inside calculate_1RM and avoid cluttering the namespace.
eply
mcglothin
lombardi
calculate_1RM
This isn't crucial.
and it wasn't smart enough to realize that comments aren't executable
Please, write an AI that will realize that comments are not executable, and I will gladly replace the current anti-cheat with it.
The cheat detection in the Python version is overly sensitive. For instance, I couldn't use the words "open parenthesis" in a comment because it said I couldn't use open(), and it wasn't smart enough to realize that comments aren't executable.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
When rounding the answers,
ceil
,floor
, andround
all failed a different subset of the tests.I guess you're thinking about
r'\bopen\s*\('
? But, it's not safe enough:would pass the check without problems.
This would actually be quite trivial with a little regex... certainly no AI is necessary.
"why not?", I'd say?
Why use lambdas if you're just going to assign them to names? You may as well use the (more readable) standard
def
syntax.Python supports inner functions; you can put
eply
,mcglothin
, andlombardi
insidecalculate_1RM
and avoid cluttering the namespace.This isn't crucial.
Please, write an AI that will realize that comments are not executable, and I will gladly replace the current anti-cheat with it.
The cheat detection in the Python version is overly sensitive. For instance, I couldn't use the words "open parenthesis" in a comment because it said I couldn't use open(), and it wasn't smart enough to realize that comments aren't executable.