Is it possible to hide a web based game jQuery code from the user?
<p>I know some of you just feel it is as a completely wrong question but I have a few requirements of such kind that's why I am asking this question. I understand that javascript is downloaded by the browser on client side so it's very difficult to hide that.</p>

<p>So now i have a game code completely written in jquery and i want that the user is not able to see the complete code because:</p>

<ol>
<li><p>The owner of the games doesn't want to show the game code to the user.</p></li>
<li><p>If a clever user reads the code carefully then he/she might be able to solve the puzzle(it's a puzzle game).</p></li>
</ol>

<p>So, is it good enough to use google closure compiler or yui compressor to make the code unreadable &amp; secure for the above requirements?</p>

<p>If you think that it's not possible to do this in the situation then please suggest me any other way of doing this. Do I need to completely rewrite the game code into a server side language then convert it to js using some tool?</p>
