This repository contains an implementation of the classic Candy Crush game using HTML, CSS, and JavaScript. The game boasts a responsive user interface with an 8x8 candy grid, dynamic candy generation, and interactive controls.
-
Basic Layout: Employed HTML, CSS, and Bootstrap to design the game board and create intuitive candy movement controls.
-
Adding Basic Behavior: Implemented fundamental user interaction, generating a new game board on button click, and allowing candy movement using arrow buttons based on game rules.
-
Adding Basic Input Check: Improved usability with input verification, enabling/disabling movement buttons based on valid input and move directions, and enhancing visual cues for enabled buttons.
-
Crush Once Button: Introduced a Crush Once button that removes crushable candies with a 500ms delay.
- Open Candy Crush in a web browser to launch the game.
- Click the "New Game" button to initiate a new game.
- Use the text field to select candies and the arrow keys to move candies.
- Press the "Crush Once" button to remove crushable candies.
This project was created as part of a programming assignment. The core game logic is implemented in the provided board.js and rules.js files.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.