nov 7
Discuss poker homework.
- Structure of program: Card, Hand, Deck objects
- How do you store the data?
- How do you order the poker hands?
- See Jim's over-the-top version : poker.py.
Go over final project and schedule for the rest of the term.
See the assignments page, where a proposal request is due
next week.
This week: chapter 12, "object oriented design".
Look at the "Dice Poker" example, pages 400 and following.
There are two version, using some of the same classes:
These are their support files are
here.
Trace through the objects and API to see how it all fits together.
If there's time, look at the random walk problem as a class exercise
- chapter 9, exercise 12 ... and perhaps 13, 14 continuation
- chapter 11, exercise 18
- can this problem fit into an object oriented design framework?
We started this; what we have so far (untested, no debugging) is attached.