Coder Social home page Coder Social logo

quarto-with-friends-server's Introduction

Quarto With Friends API

Resources

There are two main resources accessible through the Quarto With Friends API:

  1. Games
  2. Moves

An example game:

{
  id: 'e1564da3-797a-4fb1-975e-4f3935d7eeca' ,
  host: 'Caleb' ,
  guest: 'Toby' ,
}

An example move:

{
  id: 24 ,
  gameId: 'e1564da3-797a-4fb1-975e-4f3935d7eeca' ,
  moveType: 'selection' ,
  value: 7 ,
}


Available Endpoints

Base URL : 'https://obscure-harbor-97497.herokuapp.com'

Route: /games

  • GET '/games'
  • POST '/games'

Route: /games/:gameId

  • GET '/games/:gameId'
  • PATCH '/games/:gameId'

Route: /games/:gameId/moves

  • GET '/games/:gameId/moves'
  • POST '/games/:gameId/moves'
  • DELETE '/games/:gameId/moves'

Scripts

Start the application npm start

Run the tests npm test


Technical Requirements

  • Uses React, Node, Express, and PostgreSQL.
  • The client and API are deployed separately and stored in separate GitHub repos. (The GitHub for the client can be found here)
  • Uses a responsive and mobile-first design.
  • Uses semantic HTML/JSX.
  • Uses vanilla CSS for styling.
  • Both client- and server-side code is tested.
  • Includes a landing page that explains what the app does and how to get started.
  • Is live and publicly-accessible.
  • Follows a11y best practices.
  • Works across different browsers. (Chrome, Firefox, and Safari)



Quarto With Friends Client

Summary


Quarto With Friends is a web app which provides a way to remotely play the game Quarto with a friend. You share the link and then alternate turns selecting and placing pieces until a winner is declared.

Quarto is a modern classic strategy game using pieces which combine 4 attributes – size, color, shape, and consistency:




The goal is to place the fourth piece in a row or diagonal where each piece shares one attribute in common.

The twist is that your opponent chooses the piece you place on the board each turn.

Screenshots


Game Setup:




Gameplay:




Winner: (with neon dancing GIF)




quarto-with-friends-server's People

Contributors

caleb-king avatar

Watchers

James Cloos avatar  avatar

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.