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...
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...