From f9afce1ccc9576c4e1315a0c27ab4d80ee414ea8 Mon Sep 17 00:00:00 2001 From: Sai pradyumna Goud Chiragoni <143107589+Saipradyumnagoud@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:38:03 +0530 Subject: [PATCH 1/4] Add files via upload --- Games/Memory_Matching_Game/index.html | 16 +++++++ Games/Memory_Matching_Game/script.js | 69 +++++++++++++++++++++++++++ Games/Memory_Matching_Game/styles.css | 44 +++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 Games/Memory_Matching_Game/index.html create mode 100644 Games/Memory_Matching_Game/script.js create mode 100644 Games/Memory_Matching_Game/styles.css diff --git a/Games/Memory_Matching_Game/index.html b/Games/Memory_Matching_Game/index.html new file mode 100644 index 0000000000..ad1cf6eea3 --- /dev/null +++ b/Games/Memory_Matching_Game/index.html @@ -0,0 +1,16 @@ + + + + + Memory Matching Game + + + +
+

Memory Matching Game

+

Score: 0

+
+
+ + + diff --git a/Games/Memory_Matching_Game/script.js b/Games/Memory_Matching_Game/script.js new file mode 100644 index 0000000000..557a2f5d37 --- /dev/null +++ b/Games/Memory_Matching_Game/script.js @@ -0,0 +1,69 @@ +document.addEventListener('DOMContentLoaded', () => { + const cardArray = [ + { name: 'A', id: 1 }, { name: 'A', id: 2 }, + { name: 'B', id: 3 }, { name: 'B', id: 4 }, + { name: 'C', id: 5 }, { name: 'C', id: 6 }, + { name: 'D', id: 7 }, { name: 'D', id: 8 }, + { name: 'E', id: 9 }, { name: 'E', id: 10 }, + { name: 'F', id: 11 }, { name: 'F', id: 12 }, + { name: 'G', id: 13 }, { name: 'G', id: 14 }, + { name: 'H', id: 15 }, { name: 'H', id: 16 } + ]; + + cardArray.sort(() => 0.5 - Math.random()); + + const gameBoard = document.getElementById('game-board'); + const scoreDisplay = document.getElementById('score'); + let cardsChosen = []; + let cardsChosenId = []; + let cardsWon = []; + let score = 0; + + function createBoard() { + cardArray.forEach((card, index) => { + const cardElement = document.createElement('div'); + cardElement.setAttribute('data-id', index); + cardElement.classList.add('card'); + cardElement.addEventListener('click', flipCard); + gameBoard.appendChild(cardElement); + }); + } + + function checkForMatch() { + const cards = document.querySelectorAll('.card'); + const [optionOneId, optionTwoId] = cardsChosenId; + + if (cardsChosen[0] === cardsChosen[1]) { + cards[optionOneId].classList.add('flipped'); + cards[optionTwoId].classList.add('flipped'); + cardsWon.push(cardsChosen); + score += 10; + scoreDisplay.textContent = `Score: ${score}`; + } else { + cards[optionOneId].innerHTML = ''; + cards[optionTwoId].innerHTML = ''; + } + + cardsChosen = []; + cardsChosenId = []; + + if (cardsWon.length === cardArray.length / 2) { + setTimeout(() => alert(`Congratulations! You found all the matches! Your final score is ${score}.`), 100); + } + } + + function flipCard() { + const cardId = this.getAttribute('data-id'); + if (!cardsChosenId.includes(cardId) && cardsChosen.length < 2) { + cardsChosen.push(cardArray[cardId].name); + cardsChosenId.push(cardId); + this.innerHTML = cardArray[cardId].name; + this.classList.add('flipped'); + if (cardsChosen.length === 2) { + setTimeout(checkForMatch, 500); + } + } + } + + createBoard(); +}); diff --git a/Games/Memory_Matching_Game/styles.css b/Games/Memory_Matching_Game/styles.css new file mode 100644 index 0000000000..da383674e1 --- /dev/null +++ b/Games/Memory_Matching_Game/styles.css @@ -0,0 +1,44 @@ +body { + font-family: Arial, sans-serif; + text-align: center; + background-color: #f0f0f0; + margin: 0; + padding: 0; +} + +.game-container { + margin: 0 auto; + width: 600px; +} + +.game-board { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 10px; + margin-top: 20px; +} + +.card { + width: 100px; + height: 100px; + background-color: #333; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + font-size: 2em; + color: white; + border-radius: 8px; + transition: transform 0.2s; +} + +.card.flipped { + background-color: #fff; + color: #333; + transform: rotateY(180deg); +} + +#score { + font-size: 1.5em; + margin-top: 20px; +} From 5dea56a8ce5d297d91e39e1ffcfd4b3e00f774b1 Mon Sep 17 00:00:00 2001 From: Sai pradyumna Goud Chiragoni <143107589+Saipradyumnagoud@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:39:45 +0530 Subject: [PATCH 2/4] Add files via upload --- assets/images/Memory_Matching_Game.png | Bin 0 -> 20315 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 assets/images/Memory_Matching_Game.png diff --git a/assets/images/Memory_Matching_Game.png b/assets/images/Memory_Matching_Game.png new file mode 100644 index 0000000000000000000000000000000000000000..b263535e50620d33086dc4d55c5d85186d863c2c GIT binary patch literal 20315 zcmeHvc~q0vx<042(pHfwN|4c8swfCZk$H$!ARZM^p@2+LqM(GqFa-!9TC2#Elq$18 zB}FD71_+}hDkLehks%O<2oVTl7!ycH^7}&Xz32YrxxaPp`Qx1BUd!c|tgy4cz2E&j z&-=XlOX5W*h{D&ZU(3nKDg5=U-DNpB`5SU_JMMkC6L=@3isc0S_m}X?kkfLN-Rd*I zi_ZgoaQs0|j)>c}b?pn_^;fsgUI~|z+tVWZ_ZNC-$#pq7r=`Ez{ooqyJ3orKnJ38O zZaUNM>-}-3iy!7ZVzBr3k%vd@_@5ug8EzcEyD<_$wEH^E?7Z%gUmhM)YC4>1qj2T$ zV_(Nw$B_)$;@iUOGbyTEyDLXL9w^W;zyEPNT>A_`pQF6_?#`QLM9qbtb}PL-?I=*6 zA)?nhF8g7gbMVYvKNqZ?dB@m{U%L}C7n47%xrIvy%f>2e$3k+mv-jTk%b%})-MX@D z_~)hES9Vwayt-poc>K?+Q{P@v{`2Zk+R`4s|vhC(Q)5BOD;wvZ`}S)nBmnSgwV%X zHQvK(x#$i|h?rBKtIk{7F-vHBhXD8ms7C{{J9cwLxy_s_`LLaB~ zC=YiussxN_=+`n|%j1pSjvkog<$raMkljW5u-w8xN;Me7V(^~k@6}81A%RECXD3d?kFFUt=6vH;%WF7m8It4euab2)*bEE>vp{xI$a&$ zH&5~tJ!@2XM9_K|oQFoN{SMxHGqAvkw&Y?3n>O1CTN6)^O|oL)hjgXapz1bybvxwb zDt?f~g0ir9*~6$Q-dwXEnG|g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r3Q9wbG|43FV19=mo6+ayB@6 zC?PFadppIf1?x$^kh^oBpO8B3nleZDcz~3bxs`vECdw@VY4LHk0%q{y$Jt7jB7cmn zw%7Y#>WSljMu7ega{!31?e>YE{ss&(Gh(}a3Y0%BI95&R$8#1ySL=VAt@sPWA7`r{ zOI<&nd`0q_1+=kdRI=Ce%)e6)XakHR4FLC!0zlT!770~rzBjHVdjd?r6jsTgGD`-P z!MXWp{?N7zzwM}KyKz;fy%CbF%?Ztr2Y@W^0ZZc$?}wM25g~6;nUsrB+pd9)uG?t1)7klVeOGG0sc;^@T#K$_dQ*iTDRAkdXp9wyasSu z!+cAphv~MO|JyGle8~9}bARr+|7$Y-gmtnr_p$-aAacIEH($WoFZyk#+^MtwRVn^i_Mm{Q neR}KDOaM=R$lCuwO!!-ABJ~ZObL-7y9sbqc$*%JB)t~+!QQ(!@ literal 0 HcmV?d00001 From 77c60df9e601f6b7c5bf1b91907141442a6d6ed8 Mon Sep 17 00:00:00 2001 From: Sai pradyumna Goud Chiragoni <143107589+Saipradyumnagoud@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:43:33 +0530 Subject: [PATCH 3/4] Created README.md --- Games/Memory_Matching_Game/README.md | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Games/Memory_Matching_Game/README.md diff --git a/Games/Memory_Matching_Game/README.md b/Games/Memory_Matching_Game/README.md new file mode 100644 index 0000000000..d9ddf37262 --- /dev/null +++ b/Games/Memory_Matching_Game/README.md @@ -0,0 +1,39 @@ +# **Memory Matching Game** + +--- + +
+ +## **Description 📃** + +- The Memory Matching Game is a fun and interactive game where players flip over pairs of cards to find matches. The goal is to match all pairs of cards in the shortest time and with the fewest attempts possible. This game helps improve memory and concentration skills. + +## **Functionalities 🎮** + +- Randomly shuffled cards at the start of each game. +- Cards flip back over if they don't match. +- Score tracking: gain points for each match. +- Game ends when all pairs are matched. +- Alerts the player when the game is completed with their final score. + +
+ +## **How to play? 🕹ī¸** + +- Start the game by clicking on any card. +- Cards will flip to reveal the symbol on the other side. +- Try to find matching pairs by remembering the position of previously flipped cards. +- Click on two cards to flip them. If they match, they will stay flipped. If they don't, they will flip back over. +- Continue flipping cards until all pairs are matched. +- Your score is displayed at the top, increasing with each successful match. + +
+ +## **Screenshots 📸** + +
+ +![Memory_Matching_Game](https://github.com/Saipradyumnagoud/GameZone/assets/143107589/193e98bf-82e1-49f7-9cc4-41fcdfcdb618) + +
+ From 2f23a06a018c616cdc50363b8dd0b34a67d92255 Mon Sep 17 00:00:00 2001 From: Sai pradyumna Goud Chiragoni <143107589+Saipradyumnagoud@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:44:52 +0530 Subject: [PATCH 4/4] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65bc4d0ffd..6b8611a4ed 100644 --- a/README.md +++ b/README.md @@ -343,7 +343,7 @@ This repository also provides one such platforms where contributers come over an | [Number_Guessing_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Number_Guessing_Game) | | [Tower_Block_Game](https://github.com/Saipradyumnagoud/GameZone/tree/main/Games/Tower_Block_Game) | | [Modulo_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Modulo_Game) | - +|[Memory_Matching_Game](https://github.com/Saipradyumnagoud/GameZone/tree/main/Games/Memory_Matching_Game)|