Hacker Newsnew | past | comments | ask | show | jobs | submit | rhnvrm's commentslogin

I wrote a small script to solve the easy ones in the browser: https://github.com/rhnvrm/30s_challenge

Here is the script for solver: https://github.com/rhnvrm/30s_challenge/blob/master/solver.j...

and here is the cheat: https://github.com/rhnvrm/30s_challenge/blob/master/cheat.js

Also, I found that since the methods of the game and challenge class are public, you can actually just call it's functions. I also found a useful resource for learning OOPs in js http://phrogz.net/js/classes/OOPinJS.html and how to make methods private. There is another cool article here on how to make members private and protected here http://philipwalton.com/articles/implementing-private-and-pr...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: