Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/foxbunny/blackjack
- Owner: foxbunny
- Created: 2023-12-17T17:35:02.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-04T20:54:16.000Z (12 months ago)
- Last Synced: 2024-01-04T21:39:44.386Z (12 months ago)
- Language: JavaScript
- Homepage: https://foxbunny.github.io/blackjack/
- Size: 231 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 changeIf 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.