Git Product home page Git Product logo

memorymatchinggame's Introduction

Memory Game

Description

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!

User Quotes

  • 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

Users

  • 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

Database Schema

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);

REST Endpoints

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.