Verified 53 til 57.

This commit is contained in:
2018-12-24 18:41:37 -05:00
parent 147a13a01f
commit 0ee19fa69f
9 changed files with 132 additions and 63 deletions

View File

@@ -60,7 +60,9 @@
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def suit_to_value(suit):\n",
@@ -110,7 +112,9 @@
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def get_numbered_groups(ns):\n",
@@ -142,7 +146,9 @@
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def rank(hand):\n",
@@ -187,7 +193,9 @@
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"assert(rank([\"5H\", \"5C\", \"6S\", \"7S\", \"KD\"]) == [1, [(2, 5), (1, 13), (1, 7), (1, 6)]]) # Pair of Fives\n",
@@ -205,7 +213,9 @@
{
"cell_type": "code",
"execution_count": 67,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def read_hands():\n",
@@ -262,7 +272,7 @@
}
],
"metadata": {
"completion_date": "",
"completion_date": "Mon, 24 Dec 2018, 23:30",
"kernelspec": {
"display_name": "Python 3",
"language": "python3.6",
@@ -280,7 +290,10 @@
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"tags": []
"tags": [
"poker",
"airplane"
]
},
"nbformat": 4,
"nbformat_minor": 2