A grid of cards is laid out in front of the individual faced-down. The goal is to flip exactly two cards over and check if they match. If they don't, flip both cards back facing down. Repeat this with any combination of cards until two cards match. From there, keep the matching cards faced up and repeat with other cards until eventually, all the cards have matched.
The game keeps count of all attempts to match any two cards until all have matched. Once finished, the score is written to the database and is added to a list of other player scores!
- Id - identification of the player
- Name - name of the player
- Quote - phrase of the player
- Score - number of moves the player made to match the cards
- UserId - user identification of the player
- FirstName - user's first name
- LastName - user's last name
- Email - users email
- Password - users password with encryption using bcrypt
CREATE TABLE memorygame (
id SERIAL PRIMARY KEY,
name TEXT,
quote TEXT,
score INTEGER);
CREATE TABLE users (
uid SERIAL PRIMARY KEY,
fname TEXT,
lname TEXT,
email TEXT,
password TEXT);
Name | HTTP Method | Path |
---|---|---|
getQuotes | GET | /quotes |
getQuote | GET | /quotes/${id} |
createQuote | POST | /quotes |
updateQuote | PUT | /quotes/${id} |
deleteQuote | DELETE | /quotes/${id} |
createUser | POST | /users |
loginUser | POST | /sessions |