2010/12/14 冷雨 <[email protected]>: > How can I avoid cheating? If a player write his/her own javascript > sending my server "999999"?
Users don't even have to write JavaScript. Just have to open a debugger, like Firebug or Web Developer Tools, add some breakpoint, and modify the variable's value. Easier to do, and harder to fight against it. Maybe some kind of live encoding/decoding of the value with a changing algorithm would help, but as JavaScript is single threaded, you cannot really make sure about it. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
