Project #1 CMSC 132
Due Friday Sept 16, 6:00 pm Object-Oriented Programming II
Type of Homework: Open Fall 2005


This homework will give you practice using ArrayList, and programs that use the MVC (Model-View-Controller) model of interaction.

In case you have not already noticed, this is an Open homework.  You must read the Open/Closed policy before working on this project.  The policy can be found at policy


For this project you will write a class named Blackjack that implements the game logic associated with a Blackjack card game. The Blackjack class implements the BlackjackEngine Java interface whose definition you can find in the project's javadoc documentation

The project's code distribution is available by checking out the project named p1. The code distribution provides you with the following:

Blackjack Rules

If you have been to Vegas then you are familiar with the rules to play blackjack (also known as 21).  However, what happens in Vegas stays in Vegas, therefore the rules for blackjack in this project are different. 

In our blackjack version we have a dealer (person who shuffles and distribute cards) and only one player.  The game's objective is for the player to beat the dealer by generating a hand of cards whose value is higher than the dealer's hand without exceeding a total value of 21.  The game starts by the dealer shuffling a deck of cards and dealing two cards to the player and herself/himself (the actual order is described in the project's javadoc documentation).  One of the dealer's cards will be face down.  At this point the player will ask for cards until he/she understand it can beat the dealer with the current hand and as long the cards' total value does not exceed 21.  If the hand of cards does not exceed 21, and the player stops requesting cards (what is refer to as "stand"), then the dealer will flip the card that was face down, and proceed to deal cards to himself/herself as long as the cards' value is less than 16 and does not exceed 21.   If a value greater than 21 is generated the player wins.  Otherwise whoever (player or dealer) has the hand with the highest value will win the game. 

The following provides additional information about the game:


Honor Section Requirements

For those students in cmsc132H your project should satisfy all the requirements specified above and in addition:


Submit your project using the submit project option associated with Eclipse.  Do not wait until the day before the project is due to check whether you can submit your project.

Academic Integrity

Please make sure you read the academic integrity section of the syllabus so you understand what is permissible in our programming projects.  We want to remind you that we check your project against other students' projects and any case of academic dishonesty will be referred to the University's Office of Judicial Programs.

Web Accessibility