From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Student Projects

cancel
Showing results for 
Search instead for 
Did you mean: 

Why go to the casino when you can create your own blackjack dealer using LabVIEW.

Rules:

The object of the game is to reach a card value as close to 21 as possible

without going over.  Each round your score will be compared with the

dealer's, determining if you win or lose the round.  Each card is given a

value that is equal to it's number, face cards recieving a value of ten.

Getting a value of 21 with your first two cards is considered a "Blackjack"

which beats any other combination, or ties with a "Blackjack drawn by the

dealer.  The minimum bet each round is ten dollars with the maximum bet

being 100 dollars.  Winning the round rewards the player with the amount

he or she bet, while losing the round costs the player that same amount.

If the player should win by drawing a "Blackjack", the dealer pays out

double the amount that they would normally.

Gameplay:

The player starts out the game by entering their name, or choosing to load

a previous game from the "Game Saves" folder.  The players game is

automatically save after each round in the "Game Saves" folder under the

name that was given at the start of the game.

Each round starts out with the player making their bet and then pressing

the "Deal Button", after which no further bets may be made.  The dealer

displays one card down and one card up.  Then the player clicks on the

downfaced card, turning it over and revealing the initial draw.  From there

the player may "Hit" or "Stand", depending on their current card value. 

A "Hit" will draw one card and a "Stand" will end the players turn, keeping

the cards which they currently have, and then give the dealer the opportunity

to "Hit" or "Stand".  The player may take up to five cards total.  The dealer

must "Hit" with a total card value being 16 or less, and must "Stand"

when having a total card value 17 or greater.  If the player "Busts",

goes over 21, the round is automatically over and the player loses.

Aces can count for values of one or eleven, depending on the players hand.

If the player goes over 21, Aces will automatically reduce in value from

eleven to one. 

Instructions

1. Download the attached zip file

2. Double-click extract all files (see image on Connect 4 Document for visual)

3. Double-click the "blackjack.exe" file to launch the game (see image on Connect 4 Document for visual)

4. Hit the run arrow below the toolbar to start the game

Contributors