top of page

First Project: Blackjack Game in C++

  • Benny Sing
  • Dec 7, 2015
  • 1 min read

Given as an assignment in university, I was tasked to recreate a Single Player version of a well known card game called Blackjack. This was my first ever project in C++ having no prior knowledge of programming before this. As you can see on image to the left, the game was required to be played through the console window and as seen, I had to write my own instructions for the game.

Betting System

I was able to implement a working betting system that would alter the amount of money the player owns based on whether he wins the round or not as well as asking if the Player would wish to continue playing.

Ace Recognition

For those unfamiliar with the game, when a player obtains an 'Ace' he is able to decide between using it as a value of 11 or 1. My program is able to do so by checking if an 'Ace' is in the player's hand followed by asking if the player wishes to change its value before continuing the round.

The screenshot below shows what a full round would look like. In this case the player bets $200 and unfortunately loses this round. I've programmed the dealer to run automatically and depending on the value of his hand to hit or stand.

And that's it for my first project showcase! I know it isn't much but for a first timer I'd say I did alright! There will definitely be more to come as I continue on my course so keep a look out!


 
 
 

Comments


Featured Posts
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
About me
  • facebook-square

Currently in my first year studying BSc Games Technology at Bournemouth University. Always been an avid gamer since young and wondered how games were made so being on this course finally answers that question. I have a military background as well as being a Youtube Vlogger in my free time. 

© 2023 by Benetton Sing. Proudly created with Wix.com

bottom of page