Please visit the live application
This application was built and tested with Google Chrome.
Set is a card game where players try to find cards that match in a particular way. This application allows players to play a solitaire version of set. Only screens larger than 1024px are currently supported.
-
The total number of cards in the deck is 81.
-
Each card has an image on it with 4 attributes:
- Color (red, green, or purple)
- Shape (diamond, squiggle, or oval)
- Shading (solid, empty, or striped)
- Number (one, two, or three)
- Three cards are a part of a set if, for each property, the values are all the same or all different.
Example:
- The cards "two red solid squiggles", "one green solid diamond", "three purple solid ovals" would make up a set. (number, shape, and color are different, shading is the same)
- The cards "two red solid squiggles", "one green solid squiggles", "three purple solid ovals" would not make up a set, because shape is the same on two cards, but different on the third.
-
A game of Set starts by dealing 12 cards, face-up.
-
No sets on the board, three more cards are dealt.
-
A player sees three cards that make up a set, they click the cards and write on 'Sets Found' list. New cards are dealt from the deck to replace them.
-
The game is over when there are no cards in the deck, and no sets on the board.
Please see the package.json and the Gemfile for this projects dependencies.
This application was developed in an OSX environment. The setup process should be similar for any unix-based system.
Ensure that you have ruby and the bundler gem installed. This application was developed using Ruby 2.2.3. It also requires that you have the node command line tools installed.
From the directory root:
bundle installnpm installgruntorgrunt watchfor live reloadruby web_set.rb- Navigate to
http://localhost:4567
The ruby components are tested using rspec. To run the tests, use the command rspec from the directory root. You may need to bundle install if you do not have rspec already installed.