MSTC-DA-IICT / Hacktoberfest24-candy-crush_HTML_CSS_JS

This is a web-based Candy Crush game built using HTML, CSS, and JavaScript.
2 stars 13 forks source link

Candy matching and removal logic #14

Closed AAruhsi closed 1 month ago

AAruhsi commented 1 month ago

Solved this Issue #3 : Candy Matching Logic In this implementation I introduced a matching mechanism for candies in patterns of 3 and 4, applicable to both rows and columns. When 3 or 4 identical candy images align, they are automatically removed and replaced with blank images. This enhances the gameplay by allowing players to clear matches seamlessly.

aaryashah1010 commented 1 month ago

I have checked your files i guess there is some error in the javascript file kindly check and if you are not facing the same issues kindly send the screenshot or video of the working code

AAruhsi commented 1 month ago

https://github.com/user-attachments/assets/83234d5e-f18e-475a-af5f-6103c5494cb7

the candy matching and removal logic is working fine in my system. I have attached a video of the same.The images that are getting blanked out are part of the logic. Those blank images will get replaced by the new Images whose logic will be written in the candy dropping and replacement issue. @aaryashah1010

aaryashah1010 commented 1 month ago

Okk done got it