Motives notebook clean up

This commit is contained in:
Anthony Leland 2020-10-28 20:42:47 -04:00
parent 67a869f3ea
commit a2b5e3469f

View file

@ -86,10 +86,13 @@
" var maxMotive = 10;\n",
" var curMotive = motive;\n",
" var curMood = Mood;\n",
"\n",
" // New motive equals the current motive plus the input\n",
" var newMotive = curMotive + input;\n",
"\n",
" // New mood equals the new motive plus the current mood\n",
" var newMood = newMotive + curMood;\n",
" \n",
" // Changed motive is the new motive with the limit\n",
" var changedMotive = newMotive.LimitToRange(0, maxMotive);\n",
"\n",
@ -142,24 +145,7 @@
" $\"Environment: {motives.Environment}\");\n",
"Console.WriteLine($\"Mood: {motives.Mood}\");"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": "Hunger: 0\r\nFun: 6\r\nBladder: 3\r\nEnvironment: 10\r\n"
},
"execution_count": 1,
"metadata": {}
},
{
"output_type": "execute_result",
"data": {
"text/plain": "Mood: 33\r\n"
},
"execution_count": 1,
"metadata": {}
}
]
"outputs": []
},
{
"cell_type": "code",
@ -172,24 +158,7 @@
" $\"Fun: {motives.Fun}\");\n",
"Console.WriteLine($\"Mood: {motives.Mood}\");"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": "Hunger: 2\r\nFun: 10\r\n"
},
"execution_count": 1,
"metadata": {}
},
{
"output_type": "execute_result",
"data": {
"text/plain": "Mood: 39\r\n"
},
"execution_count": 1,
"metadata": {}
}
]
"outputs": []
}
],
"metadata": {