title: Is there a way to stop end-user tampering with JavaScript game code in my page?
body: <p>I am thinking of creating a HTML5 game. I understand that it's probable that no one will try to cheat, but I want to make sure (and am interested to see if there are any good techniques).</p>
  
  <p>I understand the advantages of having open source software, and would want my code to be read and stuff. However, in a game type situation, where the user's score would be sent to the server to be stored, I can see a problem in that the user can open their devtools (F12 in most browsers) and modify the script or the values in variables to give themselves a higher score or a hundred lives. I don't care if people do this, but I don't want their scores to be stored.</p>
  
  <p>Case Study: Candy Box 2 (candybox2.net) took me less than 20 seconds to get 100000000 candies.</p>
  
  <p>Is there any way to stop this from happening?</p>