I have always been a huge fan of gambling and so when I learned java in 11th grade I have wanted to create code for a game of some sort. Though I may not have been able to do it two years ago I have finally been able to create a basic game of black jack and I and very proud to present this after many stressful hours of coding(I was on a one man team). There are some basic actions that are necessary for blackjack first is shuffling and making sure that none of the cards are the same which received a random number from 0 to 51. Then is the hit method which draws another card from the pile, again making sure that it is not the same as any of the other cards. I had to always make sure to print my cards to the screen after every hit so the player wouldn't be left in the dark about their cards. I also had a method just for converting those random numbers to actual card names. And finally it totals each player and reveals the total and who won or tied.

Built With

Share this project:

Updates