Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restriction for multiple click on the same card #18

Open
princeNITian opened this issue Jul 26, 2021 · 2 comments
Open

Restriction for multiple click on the same card #18

princeNITian opened this issue Jul 26, 2021 · 2 comments

Comments

@princeNITian
Copy link

Hi @kubowania ,
Here, I noticed that if you try clicking on the same card, for every pair of clicks it is making a score. The game should not allow for multiple clicks.

@1011-gitch
Copy link

Hi @princeNITian ,
I think we should disable the click event for sometime depending upon the time for how much so that score do not get increase.

@ut3saturn
Copy link

I limited the flipCard method code to only work if the cardsChosen array is less than 2. Now you can only flip to cards, even if you select more than two cards very quickly.

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

No branches or pull requests

3 participants