Skip to content

Added invalid swap feature - #2

Open
mizanxali wants to merge 2 commits into
kubowania:masterfrom
mizanxali:master
Open

Added invalid swap feature#2
mizanxali wants to merge 2 commits into
kubowania:masterfrom
mizanxali:master

Conversation

@mizanxali

Copy link
Copy Markdown

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.

@OrangoMango

Copy link
Copy Markdown

#8 I had this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants