function oneTurnCheck() {
        toggleVisibility(moleImgs[random]);
        if (!playerHasClicked) {
          loseAudio.play();
          life.value--;
          if (life.value === "0") {
            showGameOverCard();
          }
        }
        playerHasClicked = false;
      }
//Show mole. Check if player has played/clicked, if not he couldn't have hitted a mole so minus a life. Check for remaining lives.

Show mole. Check if player has played/clicked, if not he couldn't have hitted a mole so minus a life. Check for remaining lives.
Show mole . Check if player has played / clicked if not he couldn ' t have hitted a mole so minus a life . Check for remaining lives .
function oneTurnCheck() {
        toggleVisibility(moleImgs[random]);
        if (!playerHasClicked) {
          loseAudio.play();
          life.value--;
          if (life.value === "0") {
            showGameOverCard();
          }
        }
        playerHasClicked = false;
      }
function oneTurnCheck ( ) { toggleVisibility ( moleImgs [ random ] ) ; if ( ! playerHasClicked ) { loseAudio . play ( ) ; life . value -- ; if ( life . value === "0" ) { showGameOverCard ( ) ; } } playerHasClicked = false ; }
Show mole.
Show mole .