Add files via upload

This commit is contained in:
Peter Norvig
2026-03-23 15:36:44 -07:00
committed by GitHub
parent edc8549237
commit e9f863ca75
2 changed files with 298 additions and 235 deletions

View File

@@ -760,7 +760,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's measure the deltas for the simulation results (and the `estimated_density` results) compared to the actual `density` results:"
"Let's measure the deltas for the simulation results (and the `estimated_sensity` results) compared to the actual `density` results:"
]
},
{
@@ -925,7 +925,7 @@
"def simulate_archery(previous_arrows=()) -> int:\n",
" \"\"\"Simulate the archery tournament and return the number of arrows fired.\"\"\"\n",
" arrow = random_arrow()\n",
" if any(distance(arrow) > distance(a) for a in previous_arrows):\n",
" if any(abs(arrow) > distance(a) for a in previous_arrows):\n",
" return len(previous_arrows) + 1\n",
" else:\n",
" return simulate_archery([*previous_arrows, arrow])"

File diff suppressed because one or more lines are too long