Hacker News new | ask | show | jobs
by ralfd 4738 days ago
Isn't every javascript game easily hacked?
1 comments

It can be made a decent amount more difficult with some simple changes like obfuscating the source and also encapsulating all the object definitions and state in a closure, instead of putting it all in global variables. Of course I think that would violate the minimal spirit of the game and it's really cool to be able to see its source so easily.