The machine has to automatically determine the ideal behavior to maximize its performance.
For example:
Using reinforcement learning you can also make a computer program that can complete a Mario level (MarI/O - Machine Learning for Video Games).