diff --git a/dicegame-multiply.ipynb b/dicegame-multiply.ipynb index 2742c83..92dcfdb 100644 --- a/dicegame-multiply.ipynb +++ b/dicegame-multiply.ipynb @@ -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 }, @@ -33,7 +33,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "34f63088e92944e5a842badd66e646a9", + "model_id": "10c003dcc8b843429d119a11d0aa80b3", "version_major": 2, "version_minor": 0 }, @@ -47,7 +47,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "58d908ac2f374a31bc8649cd49efa3a5", + "model_id": "ee767f8d695a4507b2184c818000c3d2", "version_major": 2, "version_minor": 0 }, @@ -61,7 +61,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "c4e97ff576aa4fb78252bddc2eef4a7d", + "model_id": "78a5b2b1ca674826bbeb69c39e85075c", "version_major": 2, "version_minor": 0 }, @@ -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", diff --git a/dicegame-multiply.py b/dicegame-multiply.py index f415d5b..ee683be 100644 --- a/dicegame-multiply.py +++ b/dicegame-multiply.py @@ -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 diff --git a/dicegame.ipynb b/dicegame.ipynb index f02f472..f3ba72b 100644 --- a/dicegame.ipynb +++ b/dicegame.ipynb @@ -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 }, @@ -33,7 +33,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "2129ee449df04b469fb1bd2c6d9ce504", + "model_id": "2b93678b9efc4d489cc98fbe608d8e0c", "version_major": 2, "version_minor": 0 }, @@ -47,7 +47,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "23e36c9401074938a2082672981fc22c", + "model_id": "032f27d1ddd44f7b826121cc2740ccfd", "version_major": 2, "version_minor": 0 }, @@ -61,7 +61,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "3b1d7225407d4b1a8952ec53e42587ab", + "model_id": "f9b1f02069424db3aa2c4fa34b061436", "version_major": 2, "version_minor": 0 }, @@ -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", diff --git a/dicegame.py b/dicegame.py index 88d5dcf..b75356f 100644 --- a/dicegame.py +++ b/dicegame.py @@ -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