diff --git a/src/moooove.ts b/src/moooove.ts index 69e8609..b228419 100644 --- a/src/moooove.ts +++ b/src/moooove.ts @@ -195,7 +195,10 @@ function removeMove(move: Move) { const box = line.children[move.x - min_x]; setInnerTile(box, Array(13).fill(9), "0"); box.removeChild(box.getElementsByTagName('img')[0]); - box.style.border = "none"; + const t = ["player0", "player0-hidden", "player1", "player1-hidden", "player-1", "player-1-hidden"]; + for (let i = 0; i < 6; i++) { + box.classList.remove(t[i]); + } box.style.rotate = "0"; }