Intro to
Programming
(with Python)

Fall 2016
course
navigation

Nov 7

Discuss and go over classes for Card, Deck, Hand, PokerHand.
This is one of most complicated tasks we'll do this semester - don't be shy about asking questions. (I didn't warn you that this one was "hard" ... hopefully it was a learning experience, however far you got.)
How do we look for things like "straights" or "three of a kind"? Well, there are many approaches, some with lots and lots of "if" statements, and some that analyze the hand with loops and new data structures.
Volunteers to discuss your work?
Here are my versions ... which we'll discuss in class.
We discussed counting "of a kind" a bit, and I've uploaded the code we did in class, runs.py

what's coming next

It's time for you to start thinking about a final term project - a project of your choice that will illustrate your understanding of the topics we've covered this semester.
Next week's homework assignment is to propose something.
The homework over the weeks following will be less, to give you time to work on the projects. Please do use that time wisely - talk to Dylan, get small version(s) working right away, and so on.
We will have a day of class presentations of these projects.
Here are some ideas to consider.
In the weeks between now and the end of term, we'll be looking some of these possibilities, and exploring a few other topics (recursion, searching game move trees).
http://cs.marlboro.edu/ courses/ fall2016/python/ notes/ Nov_7
last modified Tuesday November 8 2016 11:23 am EST

attachments [paper clip]

     name last modified size
   runs.py Nov 8 2016 11:22 am 885B