Skip to content

mistergates/Blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

PyGames

Games made in Python 3.6

BlackJack

Play blackjack against an AI dealer!

PyGames> python .\BlackJack.py
Place a bet <5 min, 100 max, q to quit>: 10

+--------------------+--------------------+
|    Player Cards    |    Dealer Cards    |
+--------------------+--------------------+
|  -----    -----    |  -----    -----    |
| |♣   ♣|  |♥   ♥|   | |     |  |♠   ♠|   |
| |  4  |  |  A  |   | |     |  |  Q  |   |
| |♣   ♣|  |♥   ♥|   | |     |  |♠   ♠|   |
|  -----    -----    |  -----    -----    |
|         15         |                    |
+--------------------+--------------------+
Choose an action <(H)it, (S)tay, (D)ouble Down, (Q)uit>: s
You stay.

+--------------------+--------------------------------------+
|    Player Cards    |             Dealer Cards             |
+--------------------+--------------------------------------+
|  -----    -----    |  -----    -----    -----    -----    |
| |♣   ♣|  |♥   ♥|   | |♦   ♦|  |♠   ♠|  |♠   ♠|  |♥   ♥|   |
| |  4  |  |  A  |   | |  2  |  |  Q  |  |  A  |  |  K  |   |
| |♣   ♣|  |♥   ♥|   | |♦   ♦|  |♠   ♠|  |♠   ♠|  |♥   ♥|   |
|  -----    -----    |  -----    -----    -----    -----    |
|         15         |                  23                  |
+--------------------+--------------------------------------+
Dealer busted!
Dealer pays you 10.

You now have 110 currency.
Place a bet <5 min, 110 max, q to quit>:

Releases

No releases published

Packages

No packages published

Languages