Giter Site home page Giter Site logo

fullhouse's Introduction

Overview:

This repo contains the code to do the following:

  1. Create one new, shuffled deck of cards (reference https://deckofcardsapi.com/ for api instructions).
  2. Using the deck_id obtained from step 1, draw 5 cards from the deck and display their images on the web page.
  3. Programmatically discard any number of cards (up to 5) from your β€œhand”.
  4. Repeat step 3 until you have a full house (i.e. 3 of one type of card and 2 of another. See https://en.wikipedia.org/wiki/List_of_poker_hands#Full_house for more information on what constitutes a full house).
  5. Once you have a full house, stop drawing cards and highlight the card images that belong to the full house using any kind of css styling you like

How To Run

This repo was created using a standard create-react-app. To run the program please do the following:

  1. clone repo
  2. run npm i
  3. run npm start

npm start will run the appin the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

fullhouse's People

Contributors

mromero1591 avatar

Watchers

 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.