codewithfourtix / codewithfourtix/candyCrush

Board Not Shuffling When No Possible Matches Are Available in Candy Crush

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
bug invalid
Dominant language
C++
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The board does not shuffle when there are no possible matches available, even though the logic for shuffling has been implemented. This causes the game to get stuck, and players cannot proceed until new possible matches appear. The game should automatically shuffle the board when no matches are possible, ensuring continuous gameplay.
Steps to Reproduce:

Launch the Candy Crush game.
Play the game until no possible matches are available (i.e., all possible moves are blocked).
Observe that the board does not shuffle to create new potential matches.

Expected Behavior:

When no possible matches are available, the board should automatically shuffle to generate new possible matches for the player.

Actual Behavior:

The board does not shuffle when no matches are available, leaving the game in a state where no further moves can be made.

Environment:

SFML Version: (e.g., 2.5.1)
IDE: (e.g., Visual Studio)

Additional Context:

The logic for shuffling has been implemented, but it is not being triggered when no possible moves are available.
Reviewing the trigger conditions and shuffle logic may be necessary.
![Screenshot 2024-12-12 104052](https://github.com/user-attachments/assets/0547364b-c1ae-4a9c-89a7-e8722d31845c)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.