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

https://github.com/space-banane/webjack

A browser-based Blackjack game for yourself!
https://github.com/space-banane/webjack

blackajack fun games web

Last synced: 11 months ago
JSON representation

A browser-based Blackjack game for yourself!

Awesome Lists containing this project

README

          

# Webjack

Webjack is a browser-based Blackjack game featuring smooth gameplay and a simple betting system.

## Features

- Classic Blackjack rules
- Interactive UI with card animations
- Betting system with balance persistence (local storage)
- Responsive design using Tailwind CSS
- No registration or login required

## Getting Started

### Prerequisites

- [Docker](https://www.docker.com/) (for running with Docker)
- Or a static web server (for manual hosting)

### Running with Docker

1. Clone this repository.
2. In the project directory, run:

```sh
docker compose up
```

3. Open your browser and go to [http://localhost:8080](http://localhost:8080).

### Manual Usage

1. Open `index.html` in your browser, or serve the directory with a static web server.

## File Structure

- `index.html` - Main HTML file and UI
- `main.js` - Game logic and UI interactions
- `cards/` - Card image assets
- `docker-compose.yml` - Docker configuration

## Gameplay

- Click **Place Bet** to start a new game.
- Adjust your bet using the modal, then play by hitting or standing.
- Your balance is saved in your browser.
- If your balance drops below the minimum, use **Get $100** to refill.

## License

MIT License. See [LICENSE](LICENSE) for details.

---

Built with ❤️ by [Space](https://space.reversed.dev)