From c5f5148a4d24790ae4f7977f374328752ff12ee0 Mon Sep 17 00:00:00 2001 From: Anthony Leland Date: Wed, 28 Oct 2020 20:57:06 -0400 Subject: [PATCH] Moved max values and random to top --- motives.ipynb | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/motives.ipynb b/motives.ipynb index e2ef9b7..7d49485 100644 --- a/motives.ipynb +++ b/motives.ipynb @@ -23,6 +23,16 @@ ], "outputs": [] }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "source": [ + "var rng = new Random();\n", + "var MaxMood = 60;" + ], + "outputs": [] + }, { "cell_type": "code", "execution_count": 1, @@ -62,8 +72,6 @@ " public int Environment { get; set; }\n", " public int Social { get; set; }\n", "\n", - " int MaxMood = 60;\n", - "\n", " /// \n", " /// The mood is the sum of all the motives.\n", " /// It deteremines the best course of action.\n", @@ -92,7 +100,7 @@ "\n", " // New mood equals the new motive plus the current mood\n", " var newMood = newMotive + curMood;\n", - " \n", + "\n", " // Changed motive is the new motive with the limit\n", " var changedMotive = newMotive.LimitToRange(0, maxMotive);\n", "\n", @@ -120,13 +128,13 @@ "outputs": [] }, { - "cell_type": "code", - "execution_count": 1, + "cell_type": "markdown", "metadata": {}, "source": [ - "var rng = new Random();" - ], - "outputs": [] + "# Set the motives\n", + "\n", + "For this experiement we use an " + ] }, { "cell_type": "code",