Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 808 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 808 Bytes

Blackjack Game

Welcome to the Blackjack Game repo! This is a simple text-based implementation of the classic card game, Blackjack. Players compete against a dealer to reach a score of 21 or as close to it as possible without going over.

Features

  • Two-player setup: Play against a computer dealer.
  • Card Dealing: Randomly deal cards to both the player and dealer.
  • Score Calculation: Calculate scores based on the rules of Blackjack.
  • Gameplay Options: Players can choose to hit (take another card) or stand (end their turn).

Game Rules

  • The goal is to get as close to 21 without going over.
  • An Ace can count as either 1 or 11.
  • If your score exceeds 21, you bust and lose the game.
  • A score of 21 with the first two cards is a Blackjack, which beats all other scores.