This repo contains the code to do the following:
- Create one new, shuffled deck of cards (reference https://deckofcardsapi.com/ for api instructions).
- Using the deck_id obtained from step 1, draw 5 cards from the deck and display their images on the web page.
- Programmatically discard any number of cards (up to 5) from your βhandβ.
- 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).
- 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
This repo was created using a standard create-react-app. To run the program please do the following:
- clone repo
- run
npm i
- 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.