High Level Design

By Anthony Marino and Desmond Lee

Home
High Level Design
Hardware Design
Software Design
Results
Pictures
Schematics
Code Listings
Future

Game Rules

Our blackjack game follows the basic rules that you would follow if you were to play blackjack in a casino. The rules are as follows:

1. The dealer hits on 16 and below and stays on 17 and above.
2. The player with the highest hand not exceeding twenty-one wins.
3. In the event of a push, the dealer wins.
4. Aces may count as eleven or one.
5. You may double down your bet after the initial deal, but then may only receive one additional card.
6. You may split your hand if the two cards dealt to you are the same. If you split your hand, you must double your bet, and play each hand individually.

Software Block Diagram

The game follows the below execution flow:

Design Decisions

To prevent the blackjack code from becoming excessively complicated, we made two design decisions.

Implementation of suits For this version of blackjack, we did not implement the suit of the card dealt. Because the suit in blackjack has no effect on the outcome of the game, we decided that implementing suits would be a time sink that would return no real dividends.

Doubling down after splitting hand As we did final tests on our game, we discovered that doubling down on a hand after it had been split did not work correctly. Because we could find no fix that would not require us to rewrite the betting scheme, we decided that if you double down on one hand after splitting, you must also double down on the other hand as well. Because this case is so rare, we feel that this is an acceptable solution for our game.

 

Home | High Level Design | Hardware Design | Software Design | Results | Pictures | Schematics | Code Listings | Future

Last updated: 04/29/02.