fix exercises
This commit is contained in:
parent
428346027a
commit
5455d9be1d
4 changed files with 7 additions and 5 deletions
|
@ -96,7 +96,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"source": [
|
"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",
|
"\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",
|
"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",
|
"\n",
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"pycharm": {
|
"pycharm": {
|
||||||
"name": "#%%\n"
|
"name": "#%%\n"
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"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",
|
"# walker = Walker(sigma_i=3, sigma_j=4, ...)\n",
|
||||||
"# ..."
|
"# ..."
|
||||||
]
|
]
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"source": [
|
"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",
|
"\n",
|
||||||
"1. how would the import statement change as a result of needing a separate context_map module?\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",
|
"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",
|
"4. Try to run all the types:\n",
|
||||||
" - Run one simulation with a flat context map\n",
|
" - Run one simulation with a flat context map\n",
|
||||||
" - Run one simulation with a hill 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\")."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue