-
Notifications
You must be signed in to change notification settings - Fork 13
Data Flow Summary
Vicious Squid edited this page Feb 24, 2026
·
7 revisions
Game Loop → TamagotchiLogic feeds stats → BrainWidget.update_brain_state()
Central Hub: BrainWidget
| Component | Description |
|---|---|
state dict |
Neuron activations |
weights dict |
Connection strengths |
| Coordinates | All subsystems |
| Worker | Responsibility | Output |
|---|---|---|
| BrainWorker | Hebbian learning, Neurogenesis | Signals → BrainWidget |
| BrainRenderWorker | Offscreen painting | QImage → paintEvent |
| NeuronOutputMonitor | Threshold checks | Hooks → Squid behaviors |
BrainWorker ──────────┐
│
▼
BrainWidget ──────▶ Squid
▲
│
BrainRenderWorker ────┘
-
Input Stage
-
BrainNeuronHooksconverts game events → neuron activations - Sensors:
can_see_food,plant_proximity,is_fleeing, etc.
-
-
Processing Stage
-
BrainWidgetupdates state dictionary -
BrainWorkerperforms Hebbian learning (weight updates) -
BrainWorkerchecks neurogenesis triggers
-
-
Output Stage
-
NeuronOutputMonitorchecks activation thresholds - Fires output hooks → game behaviours
- Actions:
flee,seek_food,sleep,change_colour, etc.
-
-
Rendering Stage
-
BrainRenderWorkerreceives state snapshot - Renders to offscreen QImage
- Main thread blits cached image
-
🦑 Raise digital squids whose brains grow & rewire themselves through Hebbian learning and Neurogenesis