Compare commits

..

2 Commits

Author SHA1 Message Date
Peter Norvig
cbe3c7a9b3 Merge pull request #146 from JEHoctor/patch-1
Fix return type and docstring in guess_row function
2026-06-03 13:46:17 -07:00
James Hoctor
8e4b98eba4 Fix return type and docstring in guess_row function 2026-03-11 14:58:31 -04:00

View File

@@ -294,8 +294,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"def guess_row(guess) -> Tuple[Word, int, float, int]:\n", "def guess_row(guess) -> Tuple[Word, int, float]:\n",
" \"\"\"A tuple of a (guess word, nuber of guaranteed wins, expected wins, maximum bin size).\"\"\"\n", " \"\"\"A tuple of a (guess word, number of guaranteed wins, expected wins).\"\"\"\n",
" B = bins([guess], words)\n", " B = bins([guess], words)\n",
" return (guess, sum(len(bin) == 1 for bin in B), sum(1 / len(bin) for bin in B))\n", " return (guess, sum(len(bin) == 1 for bin in B), sum(1 / len(bin) for bin in B))\n",
"\n", "\n",