Brain v4 foraging with a hunter

This is brain v4's real code (compiled to WebAssembly) and its trained minds, learning live in your browser. It senses the way to its food and, when the hunter is near, the way to the hunter; it must reach food without being caught, and first find out which way its own moves take it. Tap the field to scatter food: it goes after your pellets in the order you dropped them.

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)...

Tap the field to drop food. The food it is after is your first pellet; when it is eaten (or the try runs out of time) the next one takes its place. With no pellets left the task places food itself.

Router–
0tries this life
–steps, last try
–good tries, last 10
0thoughts this life

Steps per try, the latest 120; orange: not a good try (caught by the hunter, too slow, or out of time). The line is the mean of the last 10.

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 forage 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.