CSCI 3326
Assignment #5
Due date: Start of class Monday, 2/2/2009
Hand in:
1) Place all of your source
code files ( .java files ) into a single file, compress that file into a zip
with the title "yourFirstNameYourLastNamehwkX.zip" (for example,
RobertSchwellerhwk5.zip), and send this zip file to me as an email
attachment. The subject of the email
must be:
cs3326hwk5
2) Also turn in a hardcopy
of your source code along with a printout of a sample run.
Expand on the Card Game
program we started in class. In particular:
·
Implement
the Shuffle() and Cut() methods for the Deck class
·
Pick
at least one new class to implement, either from the diagram we created in
class, or a new class of your choice.
This object should include some new interesting methods and serve some
important purpose towards the creation of a Card Game.
·
Implement
a simple Card game.
For your simple card
game, one acceptable approach would be to implement "High Card
Willie":
High Card Willie Rules:
·
Up
to 10 players may participate
·
Each
player is dealt a 5-card poker hand (cards should be dealt in the proper order,
1 card to each person before any gets a second card..)
·
The
player with the highest card wins (and gets any money that was bet)
·
Before
each new game, the card deck must be shuffled then cut before any cards are dealt.
This is just one example
of a simple card game you may implement.
Feel free to implement something different of equal or greater
substance. As usual, bonus
"cool" points will be available.