I decided to try and complete this program simulating a player (you) vs dealer match of Blackjack because with my group of friends, we always like to meet up to play some card games like Blackjack, Poker, or a local one from my country called ‘Truco’ (you can search it through Google, I’m sure you will like it, it’s a traditional game from South America)
Basically, I created two classes, one for the player and the other for the house (or dealer).
Then, depending of the player willing, we can hit (to get another card) or stand (no more cards).
Automatically, the dealer following the Blackjack rules, hit or stands, and in the end, depending of who has the highest number without overpassing 21, we have our winner!
https://github.com/AgusR7/Blackjack
In conclussion, I think we all learn a lot, by programming, by doing our own proyects. So keep up the pace you all!
原文链接:Blackjack Game!
暂无评论内容