From bdee36f150329342153d19f310f6cc95c4656f6a Mon Sep 17 00:00:00 2001 From: hayao Date: Wed, 4 Aug 2021 22:29:35 +0900 Subject: [PATCH] =?utf8?q?[update]=20:=20=E3=83=AD=E3=82=B0=E3=82=92?= =?utf8?q?=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sanmoku/script/judgement.js | 2 +- sanmoku/script/main.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sanmoku/script/judgement.js b/sanmoku/script/judgement.js index 67e7ac6..ff2f401 100644 --- a/sanmoku/script/judgement.js +++ b/sanmoku/script/judgement.js @@ -28,7 +28,7 @@ const Judgement = () => { elements.forEach((e) => { if (e.dataset.player == p){ // もしいま確認しているボックスが今確認しているプレーヤーIDと一致したら - console.log(e) + //console.log(e) // チェックされているボックスの座標を座標リストに追加する CheckedByCurrentPlayerX.push(e.dataset.x); CheckedByCurrentPlayerY.push(e.dataset.y); diff --git a/sanmoku/script/main.js b/sanmoku/script/main.js index 34fa740..97b2b00 100644 --- a/sanmoku/script/main.js +++ b/sanmoku/script/main.js @@ -16,6 +16,9 @@ const ClickedBox = (e) => { MySelf.dataset.clicked = "true"; //ボックスの状態を「クリック済み」にする MySelf.dataset.player = CurrentPlayer; // チェックしたプレーヤーのIDをボックスに書き込む + // ログ + console.log(CurrentPlayer + "が " + MySelf.dataset.x + "," + MySelf.dataset.y + " をクリックしました") + // プレイヤーを変更する ChangePlayer(); @@ -44,7 +47,7 @@ const ChangePlayer = () => { }else{ CurrentPlayer++; //次のプレーヤーにする } - console.log("現在のプレイヤーは" + CurrentPlayer + "です") //ログを表示する + console.log("プレイヤー" + CurrentPlayer + "の番です") //ログを表示する } // 現在の設定を表示する -- 2.11.0