Publish a number of small games, because the game frame is the same, is the same as the judgment code is not reviewed.
Then added a bit of scrap code. I don't know if I can. If it is a manual audit, it is basically not ...
Tool class
/** * Generates some scrap code to confuse * @author Chenkai 2018/10/7 */class Confusetool {public constructor () {}public static createclass (num:n umber) {Let str = "", for (let i=0;i<num;i++) {//class str + = "Class" + this.getletter () + "{" + "\ n";//property for (Let I=0;i<20;i + +) {str + = "public " + this.getletter () + ";" + "\ n";} function for (let i=0;i<20;i++) {str + = "public " + this.getletter () + "() {" + "\ n"; for (let i=0;i<10;i++) {str + = " Let "+ this.getletter () +" = ' "+ this.getletter () +" '; " + "\ n";} str + = " }" + "\ n";} Class End str + = "}" + "\ n";} return str;} /** confusing letters and numbers */public static confusestr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";/** gets the confusing string */public static Getletter () {Let str = " StrLen = This.confusestr.length;let len = 20;for (let i=0;i<len;i++) {str + = This.confuseStr.charAt (Math.Round ( Math.random () * (strLen-1));} return str;}}
Use
Console.log (Confusetool.createclass (1));
Browser printing
A tool class that generates some scrap code that is used to confuse