How does Brainwashing Work?

Brainwashing is usually accomplished in two ways. One is subliminal messages, where something is repeated constantly. The other is reinforcement, where wanted behavior is rewarded, and unwanted behavior is punished, although it’s usually in a way that is undetectable to the person being brainwashed.