ELI5: Explain Like I'm 5

State pattern

The state pattern is a way to organize objects so they can be used in many different ways. It's like a big box of Lego blocks where you can build whatever you want. In this case, the Lego blocks are "states" which are like pieces of code that can be combined in different ways to make different things. For example, you could have a state for when a person is sleeping, or a state for when a person is eating. Each state has its own rules for how it behaves, so you can use the same set of states to make different objects (like a dragon or a unicorn) with different behaviors.
Related topics others have asked about: