title: Making a hack proof game in Javascript
body: <p>Suppose you created an online game in HTML5/JavaScript.  All the code would be downloaded into the user's browser, and they would run the game.</p>
  
  <p>How do you stop someone from copying the game onto their computer, and injecting functions and modules to cheat?  For example, they could write a function that auto-aims at the nearest enemy sprite for example.  </p>
  
  <p>Is there any fundamental way to protect people from doing this sort of thing by designing your game code in a certain way?</p>