Skip to content

BOBur3k/PvP-BlackJack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PvP Blackjack Game

Blackjack

Artwork created by Dalle 3 AI

Project Overview

This Python script brings the excitement of a PvP (Player vs. Player) Blackjack game to your command line. The game pits you against a computer opponent, blending traditional Blackjack rules with an engaging player experience. The objective is simple: beat your opponent by getting closer to 21 without going over.

Characters

Dealer

The Dealer serves as both the card dealer and the narrator, guiding you through the thrilling Blackjack showdown.

Player

You, the Player, are represented by your chosen name. Your goal is to outsmart the computer opponent and emerge as the Blackjack champion.

Computer Opponent

A simulated player represented by the computer, providing a challenging opponent for you to compete against.

Code Details

The script extensively uses if, elif, and else statements to handle various game scenarios, ensuring a dynamic and responsive gaming experience. The code structure is straightforward, making it accessible for beginners. The primary communication with the player is through the print function.

Limitations

  • The game is confined to a command-line environment.
  • There's a possibility of repeated combinations of cards and suits, impacting the game's realism.

Future Steps

  • Optimize the code for better performance and an enhanced user experience.
  • Consider creating a Telegram bot version for cross-device gameplay.
  • Introduce more dynamic character interactions to elevate the gaming atmosphere.

How to Play

  1. Run the script in a Python environment.
    python blackjack.py
  2. Enter your name to start the game.
  3. Follow the Dealer's instructions to draw or hold cards during your turn.
  4. Continue playing until the game concludes.
  5. Decide whether to play again or exit when prompted.
  6. Have fun!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages