Welcome ๐. This repository provides a simplified version of my favorite classic card game, Blackjack ๐ด. It's written in Python or Javascript, and has been developed with the assistance of three different AI coding tools: GitHub Copilot ๐ค, Cursor ๐ฅน, and Aide ๐นโฃ. As a result, you'll find multiple versions of the same program in this repository, including my original version written with help of Google ๐. :)
Blackjack is a card game where the objective is to have a hand value closest to 21 without going over. Here's a brief overview of the rules:
Number cards (2-10) are worth their face value ๐ธ. Face cards (Jacks, Queens, Kings) are each worth 10 points ๐. Aces can be worth 1 or 11 points, depending on which value benefits the hand more ๐ฑ.
Each player, including the dealer, starts with two cards ๐ด. One of the dealer's cards is facedown ๐.
Players decide whether to "hit" (take another card) ๐ or "stand" (keep their current hand) ๐. If a player's hand exceeds 21, they "bust" and lose the round ๐ .
The dealer reveals their facedown card ๐ค. Dealers must hit until their hand totals 17 or more ๐ข.
If the dealer busts, any player who didn't bust wins ๐. If the dealer doesn't bust, then any player with a higher hand value than the dealer wins ๐ฅ. If a player's hand value equals the dealer's, it's a "push" and no money changes hands ๐.
You'll find multiple versions of the program in this repository:
- Original Python Version: Written solely by the author of the repository ๐.
- GitHub Copilot Version: Written by Copilot (GitHub) ๐ค
- Cursor Version: Written by Cursor (Anysphere) ๐ฅน
- Aide Version: Written by Aide (Codestory) ๐นโฃ