Fix return type and docstring in guess_row function

This commit is contained in:
James Hoctor
2026-03-11 14:58:31 -04:00
committed by GitHub
parent da9e5e55a6
commit 8e4b98eba4

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",