Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foxbunny/blackjack

Browser-based Blackjack game
https://github.com/foxbunny/blackjack

Last synced: 28 days ago
JSON representation

Browser-based Blackjack game

Awesome Lists containing this project

README

        

# Blackjack 10101

Browser-based Blackjack 10101 game.

## Starting the development server

To start the program, run: `node start`

By default the server starts on port 3000.

## Running tests

Use the following npm scripts to run tests:

- `npm test` - Run all test suites
- `npm run test:libs` - Run library tests
- `npm run test:func` - Run functional tests only
- `npm run test:func:ui` - Bring up the Playwright test UI

## Making changes

To make changes to this code base, first identify whether the change fits
into one of the following categories:

- Refactoring
- Behavior change

If the change does not affect the behavior of the program, simply make the
change.

If the change affects the behavior, you must first modify the test
suite found in the `tests` directory, and ensure the test fails, indicating
that the new behavior is not implemented. Then make the change in the
program code to pass the test.

The code base uses *tabs* for indentation. This is intended to minimize the
number of characters used for indentation and reduce the payload.

# TODO

- [ ] Streamline the handling of card rendering by introducing a concept
of a generic face-down card (for future use such as double-down face-down).
- [ ] Allow multiple players.
- [ ] Fix wonky animation while cards are being pushed aside for the new card.
- [ ] Animate filliping of the hole card.