Skip to content

TNhan02/Blackjack-by-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a basic blackjack game code by C language.

The cards have the same points as their values (independent of suit). A (ace) has a value of 11, on the other hand, J (Jack), Q (Queen), K (King) have values of 10.

Each player and the computer begin with 2 cards. There is a 'Hit or Stand' option for every additional card. If you hit, you get one more card, your point is added, and it goes until you stay. The safe range for player is 16 to 21, while that of computer is 15 to 21. At the end, the player(s) with larger point than computer wins, but a tie can also happen.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages