When presented with a buffet of custards with varying ratios of protein to sugar, slime mold selects its optimal food source.