This reward-based learning process is called positive and negative reinforcement, and basically goes like this.
El proceso de aprendizaje basado en la recompensa se llama refuerzo positivo y negativo, y básicamente