Skip to content

lutherannn/py-blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

py-blackjack

Blackjack in python, soon to be a true simulation with betting, etc. But for now this is somewhat functional. See TODO for future updates and things you can help with.

USAGE

This requires no extra libraries, so any standard installation of python 3.* will work
python py-blackjack.py <number of games>

TODO

Add support for invalid hands. Rare cases may have the dealer and the user's hands have more than four kind of one card.
Fix dealer hand so the dealer's hidden card gets shown after the user stands, as in real life
Add splitting support, so if a user has two of the same card they can play each as its own hand, as in real life
Add double down support after betting is implemented, so the user may double down their first bet if the starting value is 11
Make the program not run if emacs is installed on a machine

Known Bugs

Issue with determining winner, sometimes the wrong winner is chosen
Issue with ace logic. Not sure exactly why, but the count gets thrown off when an ace with the value of 11 is dealt.
User count no longer adds when new cards are added. Oops.

About

Blackjack in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages