Skip to content

Contributing my Python project by the name of Blackjack in this repos…#88

Open
AdyaTech wants to merge 1 commit intoGrow-with-Open-Source:mainfrom
AdyaTech:Blackjack
Open

Contributing my Python project by the name of Blackjack in this repos…#88
AdyaTech wants to merge 1 commit intoGrow-with-Open-Source:mainfrom
AdyaTech:Blackjack

Conversation

@AdyaTech
Copy link
Copy Markdown

@AdyaTech AdyaTech commented May 6, 2026

🃏 Blackjack Game (using Python)

📌 Introduction

This project is a command-line implementation of the classic Blackjack card game in Python. The objective is to beat the dealer by getting a hand value as close to 21 as possible without exceeding it.

The game simulates real Blackjack rules, including card values, dealer behavior, and player actions like hit, stand, and double down. It provides an interactive experience while demonstrating core programming concepts.


🚀 Features

  • Full Blackjack gameplay in the terminal
  • Supports Hit, Stand, and Double Down actions
  • Realistic card deck with suits (♥ ♦ ♠ ♣)
  • Automatic dealer logic (hits until 17)
  • Betting system with balance tracking
  • Handles win, loss, and tie scenarios
  • Uses only built-in Python modules (random, sys)

💻 Example

Blackjack, by Al Sweigart

Money: 5000
How much do you bet? (1-5000, or QUIT)
> 100

Bet: 100

DEALER: ???
 ___   ___  
|## | |K  | 
|###| | ♠ | 
|_##| |_K_| 

PLAYER: 15
 ___   ___  
|10 | |5  | 
| ♥ | | ♦ | 
|_10| |_5_| 

(H)it, (S)tand, (D)ouble down> H
You drew a 6 of ♣.

PLAYER: 21

Dealer hits...
Dealer busts! You win $100!

Money: 5100

📸 Live Demo

image

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

👋 @AdyaTech
Thank you for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant