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.
- Card deck creation and shuffling
- Player actions (hit, stand)
- Dealer logic and game results
- Fully modular and type-safe
- Clone the repository:
git clone <repository-url>cd blackjack-ts - Install dependencies:
npm install - Compile TypeScript:
npx tsc - Run the game:
node dist/index.js