DEPRECATED

This repository was replaced by https://github.com/guilhermelemmi/react-blackjack-final, which contains tests and other features missing here.

react-blackjack

This is a basic implementation of the Blackjack game using React!

How to play

  1. Install Node v18 or latest
  2. Clone this repository
  3. Navigate to the project folder and run npm install:
  4. Run npm start:
  5. Open your browser and navigate to http://localhost:3000

How to run tests

  1. Run tests with npm test -- --coverage
  2. Run storybook with npm run storybook

TODO:

  1. Increase test coverage
  2. Receive game variables through an API
  3. Improve layout and responsiveness
  4. Implement other game features (bets, double, split, insurances)
  5. Create a panel to let users customize de game rules (number of decks, stand/hit on soft 17, etc)