Recent Changes - Search:

Home

Is the Laser up?

People

Publications

Calendar

Projects

Spring 2012

Older Courses

Fall 2011

Spring 2011

Fall 2010

Spring 2010

Fall 2009

Spring 2009

Fall 2008

Spring 2008

Fall 2007

HOWTOs

edit SideBar

BlackjackTrainer

Jeremy Badessa
May 12, 2009

Overview

I have created a simple Blackjack game that only allows you to hit or stand. There is an option that makes suggestions as to whether or not you should hit or stand based on what will increase your chances of winning. Your wins, losses, and ties are tracked during each running of the game.

Screenshot

Concepts Demonstrated

  • Recursion is used to modify get the next card in the random deck.
  • Higher order procedures are used throughout the project to call chains of procedures.
  • To maintain the proper game state, variable mutations are used.

External Technology

The library called Cards is essential for this Blackjack game. It provides a system to generate a shuffled set of cards with which to play, along with preset graphics to represent each card. GUI is also used for a user-friendly graphical user interface. Clicking on the buttons makes playing the game much more fun than if you were required to type in commands.

Innovation

Blackjack has been created in many languages countless times, and tables are available online that instruct you how to increase your odds of winning. I have never encountered a version of the game that combines these into a simple and streamlined gameplay experience.

Technology Used Block Diagram

Additional Remarks

The house rules for this game are as follows:

  • 1 player (and the dealer).
  • 4 decks, reshuffled after 3/4 of the cards are used.
  • Dealer stands on soft 17s.
  • No doubling.
  • No splitting.
  • No surrender.
  • No insurance.
  • No maximum under-21 hand size.

I hope this helps you to someday win money in a casino. Have fun!

Edit - History - Print - Recent Changes - Search
Page last modified on May 12, 2009, at 03:45 PM