/set

Primary LanguageJavaScript

Installation:

To install and play the Set Game, follow these steps

Clone repository: Download the zip file at this link: https://github.com/cse-3901-sharkey/2024-Sp-Team-1-Lab-1.git

Extract the files contained in the zip

Run the "index.html" file in your browser of choice

Troubleshooting Installation:

If you encounter any issues during installation, here are some possible problems and their solutions:

Assets Not Loading: Ensure that the assets directory is present in the same directory as the index.html file.

Browser Compatibility: If you encounter compatibility issues, try updating your browser to the latest version, or using google Chrome

How To Play:

Rules

Select three cards to form a set by clicking on them.

If the selected cards form a valid set, they are removed from the board and you earn a point.

If the selected cards do not form a valid set, you lose a point.

Continue selecting sets until no valid sets remain on the board, or until time runs out.

A Valid Set

Each card has four attributes: color, shape, shade, and number. In order to form a valid set you need three cards in which each of the attributes is either all the same or all different across the three cards, and this is for every attribute.

Examples of set

Matching set

Card 1: Red, 2 squiggles, solid

Card 2: Blue, 1 squiggle, solid

Card 3: Green, 3 squiggles, solid

Explanation: All attributes are either all the same or all different across the three cards.

Non-Matching set

If card three were red, the color attribute would no longer be unique or all the same even though the other atttributes are fine.

Modes

Normal: The default mode following the rules descripted above

Unlimited: The same game but now with an unlimited timer

90+10: A 90 second game but after every completed set the timer increases by 10 seconds

180+5: A 180 second game but after every completed set the timer increases by 5 seconds

Additional functions

Selecting: You are able to deselect a card if you no longer want to use it for a set.

Timer: The game has a timer that counts down from 90 seconds. There's also a pause button that stops the timer

Hint: If you're stuck, you can click the "Hint" button to highlight 2 cards that can make a possible set on the board.

Restart: You can also click on the "restart" button which would reset the timer, shuffle the cards, and set your score back to 0

shuffle: Click on shuffle to reshuffle the cards