mirror of
https://github.com/simtactics/servo.git
synced 2025-03-15 00:21:20 +00:00
Motives notebook clean up
This commit is contained in:
parent
67a869f3ea
commit
a2b5e3469f
1 changed files with 5 additions and 36 deletions
|
@ -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": {
|
||||
|
|
Loading…
Add table
Reference in a new issue