This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"{\"message\":\"ajax error 500\",\"name\":\"AjaxError\",\"xhr\":{\"UNSENT\":0,\"OPENED\":1,\"HEADERS_RECEIVED\":2,\"LOADING\":3,\"DONE\":4,\"readyState\":4,\"status\":500,\"timeout\":0,\"withCredentials\":true,\"upload\":{},\"_aborted\":false,\"_hasError\":false,\"_method\":\"POST\",\"_response\":\"{\\\"Message\\\":\\\"Internal server error occured.\\\"}\",\"_url\":\"https://mobileshop.azurewebsites.net/api/orders\",\"_timedOut\":false,\"_trackingName\":\"unknown\",\"_incrementalEvents\":false,\"responseHeaders\":{\"X-Powered-By\":\"ASP.NET\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"44\",\"Server\":\"Microsoft-IIS/10.0\",\"Date\":\"Thu, 16 Jan 2020 11:15:30 GMT\"},\"_requestId\":null,\"_cachedResponse\":{\"Message\":\"Internal server error occured.\"},\"_headers\":{\"content-type\":\"application/json\",\"authorization\":\"Bearer AQ25xaj82w4sy7pPXoHuH0N-pvod61wvceEQOyNckNWE3Q59a_8dhAJeBy4CmqlYdQ_D5Y9m-90pFSqYQ5zuBeptUaNL-2hjI7DVuL5Wix7auvPHphpXdXvc24SXySHmkWn-X_AEF_LsexCvCorlpw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkWinner() { | |
var points = 0; | |
for (let fun of [ | |
(i: number, j: number) => this.board[i][j], | |
(i: number, j: number) => this.board[j][i] | |
]) { | |
for (let i = 0; i < this.x; i++) { | |
let state = TileState.Empty; | |
points = 1; | |
for (let j = 0; j < this.y; j++) { |