4 ms·
I actually used a "private API" in level 14, crisps contest. https://gist.github.com/anonymous/dacd3f1de73a59b5983e https://gist.github.com/anonymous/dacd3f1de
by kccqzy 13y ago
I actually used a "private API" in level 14, crisps contest.
https://gist.github.com/anonymous/dacd3f1de73a59b5983e https://gist.github.com/anonymous/dacd3f1de73a59b5983e
Is this cheating?
- alnis 13y agoOoh, good catch! player.pickUpItem should definitely be renamed to player._pickUpItem and not made available to the player.
- shawabawa3 13y agoI completely cheated (added an extra key by setting a trace in the console) because I looked for an editable line for about 10 minutes and couldn't find it. Solved it now by changing greenKey to theAlgorithm
- swordsmith 13y agoCould you explain how you would do this? There doesn't seem to be an editable line, what's the trick?
- kccqzy 13y agoYep the line itself is not editable but the string argument to player.removeItem is editable. The code as given: player.removeItem('greenKey'); My "solution": Append the following text at the end of greenKey: ');player.pickUpItem('greenKey',' Final code: player.removeItem('greenKey');player.pickUpItem('greenKey',''); But currently this hack no longer works.