In the actual candy crush game, you cannot swap two candies if they don't make a match. But we could do that in your version of the game. I changed that by adding boolean return values to the functions which check for matches, and then using those booleans to validate or invalidate the players swaps.
feature
In the actual candy crush game, you cannot swap two candies if they don't make a match. But we could do that in your version of the game. I changed that by adding boolean return values to the functions which check for matches, and then using those booleans to validate or invalidate the players swaps.