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

added a label wise difficulty #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hackeramitkumar
Copy link
Member

@hackeramitkumar hackeramitkumar commented Oct 1, 2022

Fixes #6

I have added a prompt that will take difficulty as input. And according to that input the difficulty will be decided.
For easy -> 43 req_match -> 6
For Medium -> 4
5 req_match -> 10
For hard -> 4*7 req_match -> 14

@hackeramitkumar
Copy link
Member Author

@dev-lovedeep Please review this PR and if any changes are required then let me know.

@hackeramitkumar
Copy link
Member Author

@dev-lovedeep please review it.

@dev-lovedeep
Copy link
Contributor

@hackeramitkumar you have done quite a work(will give you some extra points), but understand that you have putted everything using HTML. Let say in future we decide to change the number of cards in different levels, that would require you to change lots of things.

A better approach would be to use JS to generate the cards(and also define no of cards as CONSTANTS ) and then append in HTML.

Also use can resuse the already written code by passing a modified array depending upon the level and then the function will take care of things.

@dev-lovedeep
Copy link
Contributor

dev-lovedeep commented Oct 3, 2022

@hackeramitkumar are you working on this issue?

@hackeramitkumar
Copy link
Member Author

hackeramitkumar commented Oct 3, 2022 via email

@dev-lovedeep
Copy link
Contributor

Sir actually I am out of station for next 3 days.

time for submitting PR will expire, see if you can complete it by today or I have to make this issue open again

Copy link
Contributor

@dev-lovedeep dev-lovedeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code work in case of static use case

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

Successfully merging this pull request may close these issues.

add level to the game
2 participants