I am building a small JavaScript
game where the user has to guess a word. The user will be given letters and he will have to combine them into a word. Every time when the user adds/removes a letter, the system checks if the word combined is the answer.
As the game will be mostly presented to users with no programming skills and because my server is not too powerful, I decided to implement word checking on the client side. (otherwise, I would have to run an ajax request for php script which possibly checks the answer from mysql db. that would introduce extra latency and load on the server)
Now, just to make sure, I would like to make it a bit more difficult for users with low programming skills to find out the answer variable or see the comparing function.
Is it somehow possible to make a function in JavaScript
non-human readable? Or at least making it hard-readable?
Just to remind you again, I am not too concerned if the final code will be not secure enough and some people actually crack the compare
function and get the answer - I would be happy for their effort.