Add files via upload

This commit is contained in:
Peter Norvig 2018-11-02 09:35:42 -07:00 committed by GitHub
parent 60f8b76a83
commit 4f14cdf611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<div align=right><i>Peter Norvig<br>October 2018</i></div>\n",
"\n",
"# Properly Ordered Card Hands\n",
"\n",
"The 538 Riddler [presented](https://fivethirtyeight.com/features/who-will-capture-the-most-james-bonds/) this problem by Matt Ginsberg:\n",
@ -30,7 +32,7 @@
"\n",
"That's a big improvement! \n",
"\n",
"Now let's start coding. There are two red suits and two black suits, so I'll represent the four suits as `'rbRB'`. (I also considered using `'♠️♥️♦️♣️'`.) I'll represent an abstract hand as a string of suits: `'rrBrbr'` is a 6-card hand. \n",
"Now let's start coding. There are two red suits and two black suits, so I'll represent the four suits as `'rRbB'`. (I considered `'shdc'` or ' `'♠️♥️♦️♣️'`, but I wanted to highlight the important thing, the colors.) I'll represent an abstract hand as a string of suits: `'rrBrbr'` is a 6-card hand. \n",
"\n",
"# Deals: Hands and their Probabilities\n",
"\n",