karpathy/scriptsbots — comment on commit 86f758292f07f64719fde9081c1302b70a8e0a47
File: World.cpp line 98
By GhengopelALPHA:

This needs to be sqrt(discomfort), or on the previous line, "float discomfort= sqrt(abs(dd-agents[i].temperature_preference);"
The fact that discomfort is in range 0-1 means that in order to have a sharper effect due to temp, the discomfort must be a root. I've been very pleased with the results after this change.