diff --git a/index.html b/index.html index acf7f2a..5fcce40 100644 --- a/index.html +++ b/index.html @@ -16,8 +16,6 @@
- -

diff --git a/typescript/func.js b/typescript/func.js index 84e8b86..16193bc 100644 --- a/typescript/func.js +++ b/typescript/func.js @@ -1,4 +1,4 @@ -const ip = "127.0.0.1"; +const ip = "users.guava.space"; const port = "35270"; $(function () { const init_board = [0, 2, 0, 0, 0, 0, -5, 0, -3, 0, 0, 0, 5, -5, 0, 0, 0, 3, 0, 5, 0, 0, 0, 0, -2, 0]; @@ -172,7 +172,7 @@ function getBotMove(board) { $.ajax({ type: "POST", async: false, - url: "http://" + ip + ":" + port + "/bot_move", + url: ip + ":" + port + "/bot_move", data: JSON.stringify(data), success: function (data) { data.split(",").forEach(function (item, index) { @@ -192,7 +192,7 @@ function postRequest(prevBoard, board, roll, totalRoll, quad) { $.ajax({ type: "POST", async: false, - url: "http://" + ip + ":" + port + "/post_board", + url: ip + ":" + port + "/post_board", data: JSON.stringify(data), success: function (data) { let splitData = data.split("#");