Skip to content

Commit

Permalink
updating
Browse files Browse the repository at this point in the history
  • Loading branch information
GateraGael committed Jul 5, 2021
1 parent 8bc7027 commit f7f6637
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,56 @@
"```console\n",
"https://github.com/BWSI-UAV/bugged_zip_sims_repo\n",
"```\n",
"Create your own branch of the \n",
"\n",
"You'll find the four following bugged zip sim files in that repository\n",
"\n",
"```console\n",
"bugged_zip_sim_1.py\n",
"\n",
"bugged_zip_sim_2.py\n",
"\n",
"bugged_zip_sim_3.py\n",
"\n",
"bugged_zip_sim_4.py\n",
"```\n",
"\n",
"There will be 3 bugs (low, medium, and high) levels of difficulties. Please run the following cell in order to get a random file to work on and try to debbug:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'bugged_zip_sim_2.py'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import random\n",
"\n",
"def randomize():\n",
" options = ['1', '2', '3', '4']\n",
" return random.choice(options)\n",
"\n",
"\"bugged_zip_sim_\" + str(randomize()) + \".py\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Pip Install Pygame\n",
"\n",
"One of the requirements of zip sims is that it runs based on PyGame, make sure to pip install it before attempting to debug your file.\n",
"\n",
"```console\n",
"python3 -m pip install pygame\n",
"```"
Expand Down
48 changes: 47 additions & 1 deletion 03. P3 - Debug Python Code and Git review.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,56 @@
"```console\n",
"https://github.com/BWSI-UAV/bugged_zip_sims_repo\n",
"```\n",
"Create your own branch of the \n",
"\n",
"You'll find the four following bugged zip sim files in that repository\n",
"\n",
"```console\n",
"bugged_zip_sim_1.py\n",
"\n",
"bugged_zip_sim_2.py\n",
"\n",
"bugged_zip_sim_3.py\n",
"\n",
"bugged_zip_sim_4.py\n",
"```\n",
"\n",
"There will be 3 bugs (low, medium, and high) levels of difficulties. Please run the following cell in order to get a random file to work on and try to debbug:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'bugged_zip_sim_2.py'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import random\n",
"\n",
"def randomize():\n",
" options = ['1', '2', '3', '4']\n",
" return random.choice(options)\n",
"\n",
"\"bugged_zip_sim_\" + str(randomize()) + \".py\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Pip Install Pygame\n",
"\n",
"One of the requirements of zip sims is that it runs based on PyGame, make sure to pip install it before attempting to debug your file.\n",
"\n",
"```console\n",
"python3 -m pip install pygame\n",
"```"
Expand Down

0 comments on commit f7f6637

Please sign in to comment.