Skip to content

Commit

Permalink
Fix docstring warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a authored Aug 22, 2024
1 parent b56debf commit 70c0ee1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 26 deletions.
17 changes: 8 additions & 9 deletions dicegame-multiply.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"id": "267b81b2-8270-4197-a912-c790a116b12a",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "5157230dc5bf48048d2679e9d9a5aa10",
"model_id": "57b917a357524ae3979262e2154f7eb6",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -33,7 +33,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "34f63088e92944e5a842badd66e646a9",
"model_id": "10c003dcc8b843429d119a11d0aa80b3",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -47,7 +47,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "58d908ac2f374a31bc8649cd49efa3a5",
"model_id": "ee767f8d695a4507b2184c818000c3d2",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -61,7 +61,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c4e97ff576aa4fb78252bddc2eef4a7d",
"model_id": "78a5b2b1ca674826bbeb69c39e85075c",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -82,11 +82,10 @@
"import ipywidgets as widgets\n",
"from IPython.display import display, clear_output\n",
"\n",
"\"\"\"\n",
"Dice game with various score multipliers that multiply by 2 if criteria meets the requirements, else reset to 1.\n",
"\"\"\"\n",
"\n",
"def dice_game(num_rolls = 10, num_players = 2, highest_guess = 4, guess = 7):\n",
" \"\"\"\n",
" Dice game with various score multipliers that multiply by 2 if criteria meets the requirements, else reset to 1.\n",
" \"\"\" \n",
" scores = [0] * num_players\n",
" score_multiplier = 1\n",
" score_multiplier_for_doubles = 1\n",
Expand Down
7 changes: 3 additions & 4 deletions dicegame-multiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import ipywidgets as widgets
from IPython.display import display, clear_output

"""
Dice game with various score multipliers that multiply by 2 if criteria meets the requirements, else reset to 1.
"""

def dice_game(num_rolls = 10, num_players = 2, highest_guess = 4, guess = 7):
"""
Dice game with various score multipliers that multiply by 2 if criteria meets the requirements, else reset to 1.
"""
scores = [0] * num_players
score_multiplier = 1
score_multiplier_for_doubles = 1
Expand Down
17 changes: 8 additions & 9 deletions dicegame.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"id": "267b81b2-8270-4197-a912-c790a116b12a",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "aafe6b566c934da6b391a13be99e9315",
"model_id": "b1a9b09c94b9492c98b282d10e9f4731",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -33,7 +33,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2129ee449df04b469fb1bd2c6d9ce504",
"model_id": "2b93678b9efc4d489cc98fbe608d8e0c",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -47,7 +47,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "23e36c9401074938a2082672981fc22c",
"model_id": "032f27d1ddd44f7b826121cc2740ccfd",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -61,7 +61,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3b1d7225407d4b1a8952ec53e42587ab",
"model_id": "f9b1f02069424db3aa2c4fa34b061436",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -82,11 +82,10 @@
"import ipywidgets as widgets\n",
"from IPython.display import display, clear_output\n",
"\n",
"\"\"\"\n",
"Dice game with various score multipliers that increase by 1 if criteria meets the requirements, else reset to 1.\n",
"\"\"\"\n",
"\n",
"def dice_game(num_rolls = 10, num_players = 2, highest_guess = 4, guess = 7):\n",
" \"\"\"\n",
" Dice game with various score multipliers that multiply by 2 if criteria meets the requirements, else reset to 1.\n",
" \"\"\"\n",
" scores = [0] * num_players\n",
" score_multiplier = 1\n",
" score_multiplier_for_doubles = 1\n",
Expand Down
7 changes: 3 additions & 4 deletions dicegame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import ipywidgets as widgets
from IPython.display import display, clear_output

"""
Dice game with various score multipliers that increase by 1 if criteria meets the requirements, else reset to 1.
"""

def dice_game(num_rolls = 10, num_players = 2, highest_guess = 4, guess = 7):
"""
Dice game with various score multipliers that multiply by 2 if criteria meets the requirements, else reset to 1.
"""
scores = [0] * num_players
score_multiplier = 1
score_multiplier_for_doubles = 1
Expand Down

0 comments on commit 70c0ee1

Please sign in to comment.