Skip to content

A python project on Blackjack Game build using on jupyter notebook/lab.

Notifications You must be signed in to change notification settings

Ganesh774218/Python-Black-Jack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Python-Black-Jack

A python project on Blackjack Game build using on jupyter notebook/lab.

Project Objective - The primary goal of this project is to simulate the classic Blackjack card game using Python, allowing users to play against a computer dealer. The game incorporates core programming concepts like loops, conditionals, object-oriented programming (OOP), and logic-based decision-making.

Overview - This Python-based Blackjack game, built in Jupyter Notebook, allows players to engage in a casino-style card game against the dealer. The project implements fundamental programming concepts such as object-oriented programming (OOP), loops, conditionals, and user interaction.

Tools used - Language: Python IDE/Editor - Jupyter Notebook Key Libraries - random module (to shuffle the deck and deal cards) Built-in I/O and control structures

Features & Functionality - Procedure - ๐Ÿ”น Uses standard Blackjack rulesโ€”player vs. dealer with the goal of reaching 21 points. ๐Ÿ”น Supports hit, stand, and automatic dealer rules. ๐Ÿ”น Implements card deck shuffling and dealing. ๐Ÿ”น Tracks player betting system (optional) to simulate real casino play. ๐Ÿ”น The game is structured using OOP principles - Card Class โ†’ Represents individual playing cards with suit and rank. Deck Class โ†’ Manages shuffling and dealing of cards. Player Class โ†’ Handles player actions (hit, stand, check for bust). Dealer Class โ†’ Implements AI-controlled dealer logic. Game Class โ†’ Controls the overall game flow and logic.

Key Modules/Functions - ๐Ÿ”น create_deck() โ€“ Initializes and returns a full shuffled deck. ๐Ÿ”น deal_card(deck) โ€“ Deals a single card from the deck. ๐Ÿ”น calculate_score(hand) โ€“ Calculates score of a hand, adjusting for Aces. ๐Ÿ”น display_hand(hand) โ€“ Shows the current cards held. ๐Ÿ”น blackjack_game() โ€“ The main function that controls game flow.

Skills Demonstration - ๐Ÿ”น Python fundamentals (functions, lists, loops) ๐Ÿ”น OOP (if implemented using classes like Card, Deck, Player) ๐Ÿ”น Control flow and decision logic ๐Ÿ”น Simulated real-world application of game theory ๐Ÿ”น Basic UI using print statements and input

About

A python project on Blackjack Game build using on jupyter notebook/lab.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published