Table of Contents
Card shark has the following exciting features:
- Display card value and suit (e.g. “K of Hearts”) of each card
- Display how many cards are remaining in the deck
- Add and implement the following buttons:
- Shuffle - randomize the order of the cards
- Reset - reset the deck back to “in order, separated by suit” with a standard 52-card set
- Draw - remove the top card from the deck and display the card value and suit on the page
- Face down - instead of displaying the values of the cards, display only “Card” and its position in the deck (e.g. Card 1, Card 2)
- Face up - display the cards (in their current order) with their value and suit
To get a local copy up and running follow these simple steps.
Make sure to have Node >= 14.0.0 and npm >= 5.6 on your machine
npm install npm@latest -g
- Clone the repo
git clone https://github.com/bozoputer/card-shark.git
- Install NPM packages
npm install
- Run the app
npm start
- Logic for button states
- End-to-end testing
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Project Link: https://github.com/bozoputer/card-shark