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

https://github.com/codercake/blackjack-game


https://github.com/codercake/blackjack-game

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# TypeScript: A Blackjack Game

This project demonstrates the power of TypeScript by building a simple Blackjack game. TypeScript enhances JavaScript with static typing, making development more efficient and error-free. This project focuses on game logic, type safety, and modular code organization.

## Features
- Card deck creation and shuffling
- Player actions (hit, stand)
- Dealer logic and game results
- Fully modular and type-safe

## Setup and Run

1. Clone the repository:
``git clone ``
``cd blackjack-ts``
2. Install dependencies:
`npm install`
3. Compile TypeScript:
``npx tsc``
4. Run the game:
``node dist/index.js``