/Blackjack

Primary LanguageJavaScript

Blackjack ๐ŸŽด

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 ๐Ÿ†. :)

Rules of Blackjack

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:

Card Values:

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 ๐ŸŽฑ.

The Deal:

Each player, including the dealer, starts with two cards ๐ŸŽด. One of the dealer's cards is facedown ๐Ÿ‘€.

Player's Turn:

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 ๐Ÿ˜ .

Dealer's Turn:

The dealer reveals their facedown card ๐Ÿ‘ค. Dealers must hit until their hand totals 17 or more ๐Ÿ”ข.

Winning the Game:

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 ๐Ÿ‘Œ.

Multiple Versions

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) ๐Ÿ•นโƒฃ