-
Notifications
You must be signed in to change notification settings - Fork 0
YShamili/jupyter_project-2-upd-
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a fun ,interactive implementation of the classic card game Blackjack.
This is where you can play against the computer and try to beat the dealer by getting a hand value closest to 21 without going over.
- Play against the computer: A dealer who follows standard Blackjack rules.
- Choose hit or stand during your turn.
- Card Value Calculation: Automatic calculaion of card values according to the rules.
- It keeps the track of your hand's total value and the dealer's hand.
- Aces are treated as 1 or 11, depending on the total values.
- Betting system: The player can bet some chips from their default of 100 chips for each games.
- Win or Lose chips: Depending on the outcome of the round, the player may win or lose the chips.
-Hit: Draw another card to increase the total value if your hand.
-Stand: Keep your current hand and pass your turn to the dealer.
- Try to get a get hand value of 21 or close to 21 without exceeding it.
- The dealer must hit until their hand value reaches17 or higher.
- 2 to 10 :Face value
- Jack , Queen and King :10 points each.
- Ace :1 or 11 points, depending on which is more beneficial for the hand.
-The game is played with a standard 52-card deck.
-Both the player and the dealer are dealt two cards each at the start of the game.
-The second card of the dealer remains hidden until the player stands.
-Player can choose hit(dealing another card) or stand(keep their current hand).
-If the player's hand value exceeds 21 then they get busted.
-The dealer must play their hand according to the rules:
*If the dealer's hand is less than 16 then they must hit until they reach more than 17.
*If the dealer's hand is 17 or more then they must stand.
-The goal is to have the hand value as close to 21 as possible without getting over.
-If the total hand value of the dealer is greater then the player's hand value then the dealer wins the game and vice-versa.
-If both their hand's value is same then it is a tie and it is a push.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published