You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: simulations/cat_sim_2/docs/specs.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,10 +153,10 @@ To decide, a cat scores all known nodes (including its current one) and picks th
153
153
154
154
Each tick a cat makes one decision: **move** to an adjacent node, or **act** at its current node. A cat cannot do both in the same tick.
155
155
156
-
A cat moves to(wards) the node which can satisfy its needs best. There is a`edge tax` - the more edges we have to cross to get to the node, the higher is the tax (additive). The node with the highest node score wins.
156
+
A cat moves to(wards) the node which can satisfy its needs best. There is an`edge tax` - the more edges we have to cross to get to the node, the higher is the tax (additive). The node with the highest node score wins.
157
157
- node score = need satisfaction value - (edge tax × distance)
158
-
- need satisfaction value: weighted sum across all needs (how will the needs be affected at this node?), primary need gets highest weight
159
-
-formula: planned action effects on needs (where highest priority need gets higher weight multiplier and maybe second highes too)+ event-effect on need * probability (if even has no fixed probability, but depends on actions of another cat, probability is assumed to be 0.1)
158
+
- need satisfaction value: sum across all needs (how will the needs be affected at this node?)
159
+
-formula: planned action effects on needs + event-effect on need * probability (if even has no fixed probability, but depends on actions of another cat, probability is assumed to be 0.1)
160
160
161
161
Each tick a cat makes one decision: **move** to an adjacent node, or **act** at its current node — not both.
162
162
- If the highest scoring node is the current node → cat acts there this tick
@@ -165,11 +165,12 @@ Each tick a cat makes one decision: **move** to an adjacent node, or **act** at
165
165
166
166
### Pathfinding & Spatial Memory
167
167
- A cat has an internal memory map of nodes it has visited — append-only, never forgotten
168
-
- Unvisited nodes do not exist in the cat's decision space
168
+
- Unvisited nodes do not exist in the cat's decision space (except ajdacent univisited nodes - there we only know they exist, but no other qualities of the node)
169
169
- New nodes are discovered by physically moving to an adjacent unvisited node
170
170
- Each known node stores:
171
171
-**Last seen cats**: which cats were present on last visit — persists indefinitely until updated by a new visit
172
172
-**Novelty score**: familiarity with the node (see below)
173
+
-**Adjacent nodes**: known and unknown next nodes
173
174
- Movement decisions only consider nodes in the cat's memory map
174
175
- Remembered cats feed into node scoring:
175
176
- Nodes with remembered friendly cats: `greet cat` and `play with/groom cat` count towards the node's need satisfaction value
@@ -203,6 +204,7 @@ Performing an action means the cat stays at its current node that tick (no movem
203
204
- need effects:
204
205
- energy: -5
205
206
- hunt: +20
207
+
- food: +20 (*hunt success probability)
206
208
- investigate
207
209
- need effects:
208
210
- exploration: +20 (*novelty score of node)
@@ -254,7 +256,9 @@ Performing an action means the cat stays at its current node that tick (no movem
254
256
- Passive effects: Health: +0.1/tick
255
257
256
258
#### Garden/Woods
257
-
- Available actions: sleep/rest, hunt, investigate, play, groom, mark territory, greet cat, play with/groom cat, attack cat, go to toilet
259
+
- Available actions: sleep/rest, investigate, play, groom, mark territory, go to toilet
260
+
- conditional actions: greet cat, play with/groom cat, attack cat
261
+
- uncertain actions: hunt (availability prob)
258
262
- Not available: eat, get pet by human
259
263
260
264
@@ -298,4 +302,9 @@ Are probabilistic or deterministic (actions by other cats, which have a fixed as
298
302
- Energy: -10
299
303
300
304
## Relationships
301
-
-10 to 10
305
+
- 10 to 10
306
+
- mechanics basically as in cat_sim_1
307
+
308
+
309
+
## Glossar
310
+
-`Scale Multiplier`: It's the number you multiply the trait value by before adding it to the need's urgency score. I permanently shifts a cats need levels based on its traits
0 commit comments