English subtitles

← 01-05 Poker Function

Get Embed Code
5 Languages

Showing Revision 1 created 04/23/2012 by Amara Bot.

  1. [Norvig] So now I'm ready to tackle the main function, poker.
  2. And we said it takes as input a list of hands,
  3. and it's going to return the best hand.
  4. So it takes as input the list, returns the best hand.
  5. I haven't quite figured out how to write the function itself,
  6. but at least I've got the prototype going.
  7. Now, out of a list of hands we want poker to return the highest ranking hand.
  8. Do we know of something that will help us do that? Think about it.
  9. Do you know of a built-in function in Python that selects the highest ranking item from a list?
  10. If you do, go ahead and give its name.