|
Department of Computer Science |
|
CS 420/520: Object-Oriented Programming |
||||||||||||||||
|
|
Assignment 4: Poker Dice |
|||||||||||||||||
| |
|
|
||||||||||||||||
|
Set: Thursday 14th February 2013 Due: Tuesday 26th February 2013 at or before midnight. |
|
You have been asked to design the user interface for a
computer implementation of the game of poker dice. The rules of the game are as follows.
(A pair is scored when two dice show the same number,
three-of-a-kind when three dice show the same number, and
so on.) After the hand is scored, the payout is added to
the total number of points held by the player The model should contain objects representing the cumulative score, the Hand of five dice, the number of throws that have been taken in the current round (0–3), and the subset of the dice that will be thrown next. The GUI should consist of a window containing the five dice, the current cumulative score, a way of selecting which dice will be thrown next, a button to throw (the selected subset of the) dice. You should re-use my Die, DieView, and (if you wish) my Hand code from SqueakSource. (Hand includes a method payout, which implements the above table). The SqueakSource project is the usual one:
The grading rubric is here: (pdf, rtf). Note that Model-View separation
is one of the things that we will grade on. GroupsI strongly suggest that you do this homework in groups of two. If you have worked in a group before, find a different group. If you have not worked in a group before, try it. Hints
Submitting your workEmail a .mcz version to cs520-hw. In the mail subject include [CS520 Assignment 4] and the names of all members of your group. For example:
|
||||||||||||||||
Most recently modifed by Andrew P. Black at