{"version":3,"sources":["./src/environments/environment.ts","./src/app/board/board.component.ts","./src/app/board/board.component.html","./src/app/square/square.component.ts","./src/app/square/square.component.html","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/app-routing.module.ts","./src/main.ts","./$_lazy_route_resource lazy namespace object"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gFAAgF;AAChF,0EAA0E;AAC1E,gEAAgE;AAEzD,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,mEAAmE;;;;;;;;;;;;;ACfnE;AAAA;AAAA;AAAA;AAAA;AAAkD;;;;;ICGlD,wEACI;IAAA,uDACJ;IAAA,4DAAK;;;IADD,0DACJ;IADI,gHACJ;;;;IAGI,gFAIA;IAFA,wVAAuB;IAEvB,4DAAa;;;IAHb,yEAAa;;ADFV,MAAM,cAAc;IAKzB;QAFA,YAAO,GAAW,IAAI,CAAC;IAEP,CAAC;IAEjB,QAAQ;QACN,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,GAAE,EAAE,CAAC;QAChB,IAAI,CAAC,OAAO,GAAE,IAAI,CAAC;IACrB,CAAC;IACD,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAC,IAAG,CAAC;IAC/B,CAAC;IACD,QAAQ,CAAC,GAAU;QACjB,IAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAC;YACpB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,EAAC,CAAC,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACvC,IAAI,CAAC,OAAO,GAAE,CAAC,IAAI,CAAC,OAAO,CAAC;SAC7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AS,EAAE,CAAC,2DAAY,CAAC;aAC1B;;;;;;;;;;;;;;ACpCD;AAAA;AAAA;AAAA;AAAyC;AACc;;;AAEvD,MAAM,MAAM,GAAW,EAAE,CAAC;AAMnB,MAAM,gBAAgB;;+FAAhB,gBAAgB;0JAAhB,gBAAgB,kBAHlB,CAAC,4DAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAC7B,4DAAY;mIAEX,gBAAgB,uFAFjB,4DAAY;6FAEX,gBAAgB;cAJ5B,sDAAQ;eAAC;gBACR,OAAO,EAAE,CAAC,4DAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBACvC,OAAO,EAAE,CAAC,4DAAY,CAAC;aACxB;;;;;;;;;;;;;;ACRD;AAAA;AAAA;AAAA;AAAA;AAA+C;AAIU;;;AAEzD,IAAI,qEAAW,CAAC,UAAU,EAAE;IAC1B,oEAAc,EAAE,CAAC;CAClB;AAED,2EAAwB,gBAAgB,CAAC,0DAAU;KAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;;;;;;;;;;;;ACXpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,qC","file":"main.js","sourcesContent":["// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-board',\n templateUrl: './board.component.html',\n styleUrls: ['./board.component.scss']\n})\nexport class BoardComponent implements OnInit {\n\n squares!: any[];\n XIsNext:Boolean = true;\n winner!:string ;\n constructor() { }\n\n ngOnInit(): void {\n this.newGame();\n }\n newGame() {\n this.squares = Array(9).fill(null);\n this.winner ='';\n this.XIsNext =true;\n }\n get Player(){\n return this.XIsNext ? 'O':'X';\n }\n makeMove(idx:number){\n if(!this.squares[idx]){\n this.squares.splice(idx,1,this.Player);\n this.XIsNext =!this.XIsNext;\n }\n this.winner = this.calculateWinner();\n }\n\n calculateWinner(){\n const lines = [\n [0,1,2],\n [3,4,5],\n [6,7,8],\n [0,3,6],\n [1,4,7],\n [2,5,8],\n [0,4,8],\n [2,4,6]\n ];\n for (let i = 0; i < lines.length; i++) {\n const [a,b,c] = lines[i];\n if(this.squares[a]&&this.squares[a]===this.squares[b]&&this.squares[a]===this.squares[c]){\n return this.squares[a];\n }\n }\n return null;\n }\n\n}\n","