{ // wrap app in scope to prevent minifier from removing the class definition completely class TwoK { constructor() { this.b = Array(4).fill().map(() => Array(4).fill(0)); this.score = 0; this.cmap = {0: "#caa", 2:"#ccc", 4: "#bcc", 8: "#ba6", 16: "#e61", 32: "#d20", 64: "#d00", 128: "#da0", 256: "#ec0", 512: "#dd0"}; } drawBRect(x1, y1, x2, y2, th, c, cf, fill) { g.setColor(c); for (i=0; i