Brain v4 at four slot machines

This is brain v4's real code (compiled to WebAssembly) and its trained minds, learning live in your browser. It sees no machine and no payout chance: each pull it chooses one of four machines and feels only whether that pull paid. You set how often each machine pays, and you can change it at any time.

By default you see the full brain: four specialist parts (each a 420 KB mind; two share one mind file) and the learned router that picks which part lives the life. Switch to the single 420 KB mind (v4_meta3) to compare them; the switch starts a new life with the same draws.

Loading the full brain (about 1.4 MB)...

Drag a slider to change how often that machine pays, while it lives. Family rules: one machine pays 80% and three pay 20%, and the good one moves by itself every 60 to 120 pulls.

Router–
0pulls this life
–on the best machine, last 50
–pulls that paid, last 50
0thoughts this life

Share of pulls on the best machine (the one paying most just then), one bar per 20 pulls. Dashed: you changed the machines (or the family moved its good machine). A random chooser stays near 25%.

What is going on

How it runs: the same WebAssembly file and mind files as the room demo (shared, so your browser loads them once). The task is Brain Gym's own bandit4 code, unchanged; your edits change its state between two thoughts. On the same inputs the WebAssembly build gives bit-identical acts to the native build built with the same C maths library, and the router and the memory of moves give the research programs' own results.