Skip to content

Commit

Permalink
'Change game side' —> 'Change board side'
Browse files Browse the repository at this point in the history
  • Loading branch information
hisbvdis committed Oct 2, 2022
1 parent 76975f9 commit 9026d23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions submissions/hisbvdis/memory-pair-game/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ document.addEventListener("click", forStartBtn_onDocument_Click_Handler);
boardGrid.addEventListener("click", forCardFront_onBoardGrid_Click_Handler);


function changeGameSide() {
function changeBoardSide() {
boardInner.classList.toggle("flipper__inner--flipped");
}

Expand Down Expand Up @@ -79,7 +79,7 @@ function checkGameOver() {
);

if (resolvedCards.length === options.length * 2) {
changeGameSide();
changeBoardSide();

const boardFront = document.querySelector(".board__side--front");
boardFront.innerHTML = `
Expand Down Expand Up @@ -108,7 +108,7 @@ function forCardFront_onBoardGrid_Click_Handler(evt) {
function forStartBtn_onDocument_Click_Handler(evt) {
if (!evt.target.matches("[data-start-btn]")) return;

changeGameSide();
changeBoardSide();
startNewGame();
}

Expand Down

0 comments on commit 9026d23

Please sign in to comment.