From 7c732e4659039111f8e532f4ea3385d19bf8f861 Mon Sep 17 00:00:00 2001 From: HlAndrey Date: Wed, 20 Mar 2024 09:04:18 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=D0=9B=D0=B0=D0=B12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- app.js | 18 +----------------- index.html | 39 ++++++++++++++++++++++++++++----------- package.json | 19 +++++++++++++++++++ 4 files changed, 50 insertions(+), 29 deletions(-) create mode 100644 package.json diff --git a/.vscode/settings.json b/.vscode/settings.json index 6f3a291..3ba6d77 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "liveServer.settings.port": 5501 + + "liveServer.settings.port": 5501 } \ No newline at end of file diff --git a/app.js b/app.js index affd031..be8f35b 100644 --- a/app.js +++ b/app.js @@ -25,23 +25,7 @@ const configure_ai = () => { }); }; -FBInstant.initializeAsync() - .then(function(){ - var progress = 0; - var interval = setInterval(function() { - if(progress>=95){ - clearInterval(interval); - FBInstant.startGameAsync().then( - function() { - console.log("Game Loaded"); - } - ) - }; - FBInstant.setLoadingProgress(progress); - progress += 5; - }, 100); - } -); + // RESET GAME TO TWO PLAYER MODE const twoPlayer = () => { diff --git a/index.html b/index.html index 02df4ab..f623cd4 100644 --- a/index.html +++ b/index.html @@ -1,29 +1,33 @@ + TTC - + + - + + - + - +
+ - + - +

Tic-Tac-Toe

Scoreboard

+
- + @@ -136,7 +148,7 @@

PLAYER MOVE!

- +
@@ -148,9 +160,10 @@

PLAYER MOVE!

- - + + + +
+

- + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..c51b711 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "lab1", + "version": "1.0.0", + "description": "lite", + "main": "app", + "scripts": { + "start": "node app.js", + "test": "test" + }, + "repository": { + "type": "git", + "url": "git" + }, + "keywords": [ + "lab1" + ], + "author": "im", + "license": "ISC" +} From 45f7b5751b3241266d2f4ec98ba416a4446c9d1f Mon Sep 17 00:00:00 2001 From: HlAndrey Date: Wed, 17 Apr 2024 22:17:40 +0300 Subject: [PATCH 2/4] =?UTF-8?q?=D0=97=D0=BC=D1=96=D0=BD=D0=B8=20=D0=BE?= =?UTF-8?q?=D0=B4=D1=80=D1=83=D0=BA=D1=96=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f623cd4..eca0a95 100644 --- a/index.html +++ b/index.html @@ -163,7 +163,7 @@

PLAYER MOVE!