I’m a couple weeks into my project to learn how to code in Java, and a few days ago I decided to build an algorithm that simulates 1,000 games of Blackjack and reports back the odds of winning if you’re the dealer. It took a few hours to make but finally it works!
Probably the hardest part of this project was programming the computers to play Blackjack according to the rules, and also programming the deck of cards so that each card was unique and reflected the standard deck used in casinos.
Here is a preview of what the code outputs…
Now that I have written my first advanced program I am moving on to learning new things, like getting a better understanding of classes and class types and new functions that I can use!