{"mappings":"SAASA,KAAKC,EAAUC,GACtBC,KAAKC,EAAmBH,EAASG,EACjCD,KAAKE,EAAmBJ,EAASI,EACjCF,KAAKD,MAAmBA,GAAS,EAEjCC,KAAKG,iBAAmB,KACxBH,KAAKI,WAAmB,KAG1BP,KAAKQ,UAAUC,aAAe,WAC5BN,KAAKG,iBAAmB,CAAEF,EAAGD,KAAKC,EAAGC,EAAGF,KAAKE,IAG/CL,KAAKQ,UAAUE,eAAiB,SAAUT,GACxCE,KAAKC,EAAIH,EAASG,EAClBD,KAAKE,EAAIJ,EAASI,GAGpBL,KAAKQ,UAAUG,UAAY,WACzB,MAAO,CACLV,SAAU,CACRG,EAAGD,KAAKC,EACRC,EAAGF,KAAKE,GAEVH,MAAOC,KAAKD","sources":["src/js/tile.js"],"sourcesContent":["function Tile(position, value) {\n this.x = position.x;\n this.y = position.y;\n this.value = value || 1;\n\n this.previousPosition = null;\n this.mergedFrom = null; // Tracks tiles that merged together\n}\n\nTile.prototype.savePosition = function () {\n this.previousPosition = { x: this.x, y: this.y };\n};\n\nTile.prototype.updatePosition = function (position) {\n this.x = position.x;\n this.y = position.y;\n};\n\nTile.prototype.serialize = function () {\n return {\n position: {\n x: this.x,\n y: this.y\n },\n value: this.value\n };\n};\n"],"names":["Tile","position","value","this","x","y","previousPosition","mergedFrom","prototype","savePosition","updatePosition","serialize"],"version":3,"file":"index.b43a4953.js.map"}