fuzzyworld

dao-game / commit

Console cleanup.

e6a09ed6152cf1d20d367e8fe032714f544e0328 · Pavel Safronov · 2022-02-26 23:56:47 -0800 · parents ae4d40a91e62

Console cleanup.
 game.js | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/game.js b/game.js
index 5de5c28..2ebe3d0 100644
--- a/game.js
+++ b/game.js
@@ -279,9 +279,7 @@ const makeMove = async (destIndex) => {
     },], { duration: 1000, iterations: 1 });
 
     // await animations
-    console.error('starting animation')
     await Promise.all([sourceAnimation.finished, destAnimation.finished]);
-    console.error('animations done')
 
     // remove old piece
     piece.parentNode.removeChild(piece);
@@ -353,8 +351,6 @@ const doCoordsFormSquare = (coords) => {
 };
 
 const checkForWin = () => {
-    console.error(`testing win for ${isRedTurn ? 'red' : 'blue'}`);
-
     const playerCoords = elementsToCoords(
         isRedTurn ? redPieces() : bluePieces())
     const otherCoords = elementsToCoords(