fix exercises

This commit is contained in:
Lisa Schwetlick 2025-09-24 10:13:52 +02:00
parent 428346027a
commit 5455d9be1d
4 changed files with 7 additions and 5 deletions

View file

@ -96,7 +96,7 @@
}
},
"source": [
"# 2. Rewrite the code to look like it would in your wildest dreams!\n",
"# 2. How would interact with the Walker in your wildest dreams!\n",
"\n",
"How could you restructure the interface of the `walker` library so that the functionality stays the same, but the code is less smelly?\n",
"\n",
@ -133,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
@ -141,7 +141,7 @@
},
"outputs": [],
"source": [
"# Write the code that uses your new `walker` interface here!\n",
"# Write the (pseudo)code that uses your new `walker` interface here!\n",
"# walker = Walker(sigma_i=3, sigma_j=4, ...)\n",
"# ..."
]

View file

@ -81,7 +81,7 @@
}
},
"source": [
"# 2. Modify the above code to reflect the idea of a separate context_map module\n",
"# 2. Propose modifications to the code that calls the walker (above) to reflect the idea of a separate context_map module\n",
"\n",
"1. how would the import statement change as a result of needing a separate context_map module?\n",
"2. what input arguments do the context_map functions need to take?\n",
@ -121,7 +121,9 @@
"4. Try to run all the types:\n",
" - Run one simulation with a flat context map\n",
" - Run one simulation with a hill context map\n",
" - Run one simulation with a labyrinth context map"
" - Run one simulation with a labyrinth context map\n",
"\n",
"When you have a working implementation: PR! You can link the issue in the commit message (by writing \"issue #3\")."
]
},
{