Skip to content

Added new functions#67

Open
0daysleft wants to merge 1 commit into
kubowania:masterfrom
0daysleft:patch-5
Open

Added new functions#67
0daysleft wants to merge 1 commit into
kubowania:masterfrom
0daysleft:patch-5

Conversation

@0daysleft
Copy link
Copy Markdown

These functions are:

  1. Added a start game button to start the game

  2. Added functions for displaying and hiding the game rules

  3. Added Fisher-Yates shuffle algorithm function which shuffles the arrays unbiased

  4. Removed alert and added background colors: when the user selects matching images background turn green and when images doesn't match it turns red

  5. Also added a cursor not allowed to the images that matches

  6. added a button that will restart the game if the user finishes

  7. Removed the createBoard() function from flipCard() function, which means the game will just be displayed once the page loads

These functions are:

1. Added a start game button to start the game
2. Added functions for displaying and hiding the game rules
3. Added Fisher-Yates shuffle algorithm function which shuffles the arrays unbiased
4. Removed alert and added background colors: when the user selects matching images background turn green and when images doesn't match it turns red

5. Also added a cursor not allowed to the images that matches

6. added a button that will restart the game if the user finishes

7. Removed the createBoard() function from flipCard() function, which means the game will just be displayed once the page loads
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.

1 participant